File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Resources:
66
66
- !ImportValue VPC-PublicSubnetD
67
67
- !ImportValue VPC-PublicSubnetE
68
68
69
- Listener :
69
+ HttpListener :
70
70
Type : AWS::ElasticLoadBalancingV2::Listener
71
71
Properties :
72
72
DefaultActions :
@@ -76,6 +76,27 @@ Resources:
76
76
Port : 80
77
77
Protocol : HTTP
78
78
79
+ HttpsListener :
80
+ Type : AWS::ElasticLoadBalancingV2::Listener
81
+ Properties :
82
+ DefaultActions :
83
+ - Type : forward
84
+ TargetGroupArn : !Ref TargetGroup
85
+ LoadBalancerArn : !Ref LoadBalancer
86
+ Port : 443
87
+ Protocol : HTTPS
88
+ Certificates :
89
+ - CertificateArn : !Ref HttpsCertificate
90
+
91
+ HttpsCertificate :
92
+ Type : AWS::CertificateManager::Certificate
93
+ Properties :
94
+ DomainName : !Sub "${SubdomainName}.${BaseDomainName}"
95
+ DomainValidationOptions :
96
+ - DomainName : !Sub "${SubdomainName}.${BaseDomainName}"
97
+ HostedZoneId : !Ref HostedZone
98
+ ValidationMethod : DNS
99
+
79
100
TargetGroup :
80
101
Type : AWS::ElasticLoadBalancingV2::TargetGroup
81
102
Properties :
You can’t perform that action at this time.
0 commit comments