@@ -21,6 +21,7 @@ Object {
21
21
" GuEc2App" ,
22
22
" GuCertificate" ,
23
23
" GuInstanceRole" ,
24
+ " GuSsmSshPolicy" ,
24
25
" GuDescribeEC2Policy" ,
25
26
" GuLoggingStreamNameParameter" ,
26
27
" GuLogShippingPolicy" ,
@@ -134,6 +135,11 @@ Object {
134
135
},
135
136
},
136
137
" MaxSize" : " 6" ,
138
+ " MetricsCollection" : Array [
139
+ Object {
140
+ " Granularity" : " 1Minute" ,
141
+ },
142
+ ],
137
143
" MinSize" : " 3" ,
138
144
" Tags" : Array [
139
145
Object {
@@ -1805,20 +1811,6 @@ Object {
1805
1811
],
1806
1812
" Version" : " 2012-10-17" ,
1807
1813
},
1808
- " ManagedPolicyArns" : Array [
1809
- Object {
1810
- " Fn::Join" : Array [
1811
- " " ,
1812
- Array [
1813
- " arn:" ,
1814
- Object {
1815
- " Ref" : " AWS::Partition" ,
1816
- },
1817
- " :iam::aws:policy/AmazonSSMManagedInstanceCore" ,
1818
- ],
1819
- ],
1820
- },
1821
- ],
1822
1814
" Path" : " /" ,
1823
1815
" Tags" : Array [
1824
1816
Object {
@@ -1921,6 +1913,7 @@ Object {
1921
1913
},
1922
1914
" Port" : 443 ,
1923
1915
" Protocol" : " HTTPS" ,
1916
+ " SslPolicy" : " ELBSecurityPolicy-TLS13-1-2-2021-06" ,
1924
1917
},
1925
1918
" Type" : " AWS::ElasticLoadBalancingV2::Listener" ,
1926
1919
},
@@ -1931,6 +1924,14 @@ Object {
1931
1924
" Key" : " deletion_protection.enabled" ,
1932
1925
" Value" : " true" ,
1933
1926
},
1927
+ Object {
1928
+ " Key" : " routing.http.x_amzn_tls_version_and_cipher_suite.enabled" ,
1929
+ " Value" : " true" ,
1930
+ },
1931
+ Object {
1932
+ " Key" : " routing.http.drop_invalid_header_fields.enabled" ,
1933
+ " Value" : " true" ,
1934
+ },
1934
1935
],
1935
1936
" Scheme" : " internet-facing" ,
1936
1937
" SecurityGroups" : Array [
@@ -2231,6 +2232,42 @@ Object {
2231
2232
},
2232
2233
" Type" : " AWS::IAM::Policy" ,
2233
2234
},
2235
+ " SsmSshPolicy4CFC977E" : Object {
2236
+ " Properties" : Object {
2237
+ " PolicyDocument" : Object {
2238
+ " Statement" : Array [
2239
+ Object {
2240
+ " Action" : Array [
2241
+ " ec2messages:AcknowledgeMessage" ,
2242
+ " ec2messages:DeleteMessage" ,
2243
+ " ec2messages:FailMessage" ,
2244
+ " ec2messages:GetEndpoint" ,
2245
+ " ec2messages:GetMessages" ,
2246
+ " ec2messages:SendReply" ,
2247
+ " ssm:UpdateInstanceInformation" ,
2248
+ " ssm:ListInstanceAssociations" ,
2249
+ " ssm:DescribeInstanceProperties" ,
2250
+ " ssm:DescribeDocumentParameters" ,
2251
+ " ssmmessages:CreateControlChannel" ,
2252
+ " ssmmessages:CreateDataChannel" ,
2253
+ " ssmmessages:OpenControlChannel" ,
2254
+ " ssmmessages:OpenDataChannel" ,
2255
+ ],
2256
+ " Effect" : " Allow" ,
2257
+ " Resource" : " *" ,
2258
+ },
2259
+ ],
2260
+ " Version" : " 2012-10-17" ,
2261
+ },
2262
+ " PolicyName" : " ssm-ssh-policy" ,
2263
+ " Roles" : Array [
2264
+ Object {
2265
+ " Ref" : " InstanceRoleManagefrontendC8EBF20D" ,
2266
+ },
2267
+ ],
2268
+ },
2269
+ " Type" : " AWS::IAM::Policy" ,
2270
+ },
2234
2271
" TargetGroupManagefrontend7AE2B787" : Object {
2235
2272
" Properties" : Object {
2236
2273
" HealthCheckIntervalSeconds" : 10 ,
@@ -2345,6 +2382,9 @@ Object {
2345
2382
" Type" : " AWS::EC2::SecurityGroupIngress" ,
2346
2383
},
2347
2384
" supportPRODmanagefrontend8911518E" : Object {
2385
+ " DependsOn" : Array [
2386
+ " InstanceRoleManagefrontendC8EBF20D" ,
2387
+ ],
2348
2388
" Properties" : Object {
2349
2389
" LaunchTemplateData" : Object {
2350
2390
" IamInstanceProfile" : Object {
@@ -2359,6 +2399,9 @@ Object {
2359
2399
" Ref" : " AMIManagefrontend" ,
2360
2400
},
2361
2401
" InstanceType" : " t4g.small" ,
2402
+ " MetadataOptions" : Object {
2403
+ " InstanceMetadataTags" : " enabled" ,
2404
+ },
2362
2405
" SecurityGroupIds" : Array [
2363
2406
Object {
2364
2407
" Fn::GetAtt" : Array [
@@ -2377,6 +2420,10 @@ Object {
2377
2420
Object {
2378
2421
" ResourceType" : " instance" ,
2379
2422
" Tags" : Array [
2423
+ Object {
2424
+ " Key" : " App" ,
2425
+ " Value" : " manage-frontend" ,
2426
+ },
2380
2427
Object {
2381
2428
" Key" : " gu:cdk:version" ,
2382
2429
" Value" : " TEST" ,
@@ -2402,6 +2449,10 @@ Object {
2402
2449
Object {
2403
2450
" ResourceType" : " volume" ,
2404
2451
" Tags" : Array [
2452
+ Object {
2453
+ " Key" : " App" ,
2454
+ " Value" : " manage-frontend" ,
2455
+ },
2405
2456
Object {
2406
2457
" Key" : " gu:cdk:version" ,
2407
2458
" Value" : " TEST" ,
@@ -2482,6 +2533,10 @@ systemctl start manage-frontend
2482
2533
Object {
2483
2534
" ResourceType" : " launch-template" ,
2484
2535
" Tags" : Array [
2536
+ Object {
2537
+ " Key" : " App" ,
2538
+ " Value" : " manage-frontend" ,
2539
+ },
2485
2540
Object {
2486
2541
" Key" : " gu:cdk:version" ,
2487
2542
" Value" : " TEST" ,
0 commit comments