Resource: aws_lb_trust_store

Provides a ELBv2 Trust Store for use with Application Load Balancer Listener resources.

Example Usage

Trust Store Load Balancer Listener

resource "aws_lb_trust_store" "test" {
  name = "tf-example-lb-ts"

  ca_certificates_bundle_s3_bucket = "..."
  ca_certificates_bundle_s3_key    = "..."

}

resource "aws_lb_listener" "example" {
  load_balancer_arn = aws_lb.example.id

  default_action {
    target_group_arn = aws_lb_target_group.example.id
    type             = "forward"
  }

  mutual_authentication = {
    mode            = "verify"
    trust_store_arn = aws_lb_trust_store.test.arn
  }
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Trust Stores using their ARN. For example:

import {
  to = aws_lb_trust_store.example
  id = "arn:aws:elasticloadbalancing:us-west-2:187416307283:truststore/my-trust-store/20cfe21448b66314"
}

Using terraform import, import Target Groups using their ARN. For example:

% terraform import aws_lb_trust_store.example arn:aws:elasticloadbalancing:us-west-2:187416307283:truststore/my-trust-store/20cfe21448b66314