AWS::ElasticLoadBalancingV2::Listener Certificate - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::ElasticLoadBalancingV2::Listener Certificate

Specifies an SSL server certificate to use as the default certificate for a secure listener.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "CertificateArn" : String }

YAML

CertificateArn: String

Properties

CertificateArn

The Amazon Resource Name (ARN) of the certificate.

Required: No

Type: String

Update requires: No interruption

Examples

The following example defines a TLS listener. When you create a secure listener, you must specify a security policy and a certificate.

YAML

myTLSListener: Type: AWS::ElasticLoadBalancingV2::Listener Properties: LoadBalancerArn: !Ref myLoadBalancer Protocol: TLS Port: 443 DefaultActions: - Type: forward TargetGroupArn: !Ref myTargetGroup SslPolicy: ELBSecurityPolicy-TLS13-1-2-2021-06 Certificates: - CertificateArn: arn:aws:acm:us-west-2:123456789012:certificate/88ca7932-756c-46f1-a70d-03fa7EXAMPLE

JSON

{ "myTLSListener": { "Type": "AWS::ElasticLoadBalancingV2::Listener", "Properties": { "LoadBalancerArn": { "Ref": "myLoadBalancer" }, "Protocol": "TLS", "Port": 443, "DefaultActions": [ { "Type": "forward", "TargetGroupArn": { "Ref": "myTargetGroup" } } ], "SslPolicy": "ELBSecurityPolicy-TLS13-1-2-2021-06", "Certificates": [ { "CertificateArn": "arn:aws:acm:us-west-2:123456789012:certificate/88ca7932-756c-46f1-a70d-03fa7EXAMPLE" } ] } } }