HTTPS/SSL

If you wish to accept HTTPS requests, you'll need to configure an additional listener. It will look something like the following:

      ExampleHTTPSListener:         Type: AWS::ElasticLoadBalancingV2::Listener         Properties:           Certificates:             - CertificateArn:               arn:aws:acm:ap-southeast-2:123456789012:               certificate/12345678-1234-1234-1234-123456789012           LoadBalancerArn:             Ref: ExampleLoadBalancer           DefaultActions:             - Type: forward               TargetGroupArn:                 Ref: ExampleTargetGroup           Port: 443           Protocol: HTTPS

The listener will need to reference a valid Amazon Resource Name (ARN) for the certificate you wish to use. It's really easy to have AWS Certificate Manager create a certificate for you, but it does require validation of the domain name you're generating ...

Get AWS Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.