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:
71
71
- !ImportValue VPC-PublicSubnetD
72
72
- !ImportValue VPC-PublicSubnetE
73
73
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
83
89
84
90
HttpsListener :
85
91
Type : AWS::ElasticLoadBalancingV2::Listener
86
92
Properties :
93
+ Port : 443
94
+ Protocol : HTTPS
87
95
DefaultActions :
88
96
- Type : forward
89
97
TargetGroupArn : !Ref TargetGroup
90
98
LoadBalancerArn : !Ref LoadBalancer
91
- Port : 443
92
- Protocol : HTTPS
93
99
Certificates :
94
100
- CertificateArn : !Ref HttpsCertificate
95
101
You can’t perform that action at this time.
0 commit comments