File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -71,25 +71,31 @@ Resources:
7171 - !ImportValue VPC-PublicSubnetD
7272 - !ImportValue VPC-PublicSubnetE
7373
74- HttpListener :
75- Type : AWS::ElasticLoadBalancingV2::Listener
76- Properties :
77- DefaultActions :
78- - Type : forward
79- TargetGroupArn : !Ref TargetGroup
80- LoadBalancerArn : !Ref LoadBalancer
81- Port : 80
82- Protocol : HTTP
74+ HttpListner :
75+ Type : AWS::ElasticLoadBalancingV2::Listener
76+ Properties :
77+ Port : 80
78+ Protocol : HTTP
79+ DefaultActions :
80+ - Type : redirect
81+ RedirectConfig :
82+ Protocol : HTTPS
83+ Port : 443
84+ Host : " #{host}"
85+ Path : " /#{path}"
86+ Query : " #{query}"
87+ StatusCode : HTTP_301
88+ LoadBalancerArn : !Ref LoadBalancer
8389
8490 HttpsListener :
8591 Type : AWS::ElasticLoadBalancingV2::Listener
8692 Properties :
93+ Port : 443
94+ Protocol : HTTPS
8795 DefaultActions :
8896 - Type : forward
8997 TargetGroupArn : !Ref TargetGroup
9098 LoadBalancerArn : !Ref LoadBalancer
91- Port : 443
92- Protocol : HTTPS
9399 Certificates :
94100 - CertificateArn : !Ref HttpsCertificate
95101
You can’t perform that action at this time.
0 commit comments