Resource: awsLbListenerCertificate
Provides a Load Balancer Listener Certificate resource.
This resource is for additional certificates and does not replace the default certificate on the listener.
\~> Note: awsAlbListenerCertificate
is known as awsLbListenerCertificate
. The functionality is identical.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsAcmCertificateExample = new aws.acmCertificate.AcmCertificate(
this,
"example",
{}
);
new aws.lb.Lb(this, "front_end", {});
const awsLbListenerFrontEnd = new aws.lbListener.LbListener(
this,
"front_end_2",
{}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsLbListenerFrontEnd.overrideLogicalId("front_end");
const awsLbListenerCertificateExample =
new aws.lbListenerCertificate.LbListenerCertificate(this, "example_3", {
certificateArn: awsAcmCertificateExample.arn,
listenerArn: awsLbListenerFrontEnd.arn,
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
awsLbListenerCertificateExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
listenerArn
- (Required, Forces New Resource) The ARN of the listener to which to attach the certificate.certificateArn
- (Required, Forces New Resource) The ARN of the certificate to attach to the listener.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- ThelistenerArn
andcertificateArn
separated by a_
.
Import
Listener Certificates can be imported by using the listener arn and certificate arn, separated by an underscore (_
), e.g.,