@@ -11,6 +11,7 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
11
11
" GuEc2App" ,
12
12
" GuCertificate" ,
13
13
" GuInstanceRole" ,
14
+ " GuSsmSshPolicy" ,
14
15
" GuDescribeEC2Policy" ,
15
16
" GuLoggingStreamNameParameter" ,
16
17
" GuLogShippingPolicy" ,
@@ -91,6 +92,11 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
91
92
},
92
93
},
93
94
" MaxSize" : " 2" ,
95
+ " MetricsCollection" : [
96
+ {
97
+ " Granularity" : " 1Minute" ,
98
+ },
99
+ ],
94
100
" MinSize" : " 1" ,
95
101
" Tags" : [
96
102
{
@@ -427,20 +433,6 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
427
433
],
428
434
" Version" : " 2012-10-17" ,
429
435
},
430
- " ManagedPolicyArns" : [
431
- {
432
- " Fn::Join" : [
433
- " " ,
434
- [
435
- " arn:" ,
436
- {
437
- " Ref" : " AWS::Partition" ,
438
- },
439
- " :iam::aws:policy/AmazonSSMManagedInstanceCore" ,
440
- ],
441
- ],
442
- },
443
- ],
444
436
" Path" : " /" ,
445
437
" Tags" : [
446
438
{
@@ -571,6 +563,7 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
571
563
},
572
564
" Port" : 443 ,
573
565
" Protocol" : " HTTPS" ,
566
+ " SslPolicy" : " ELBSecurityPolicy-TLS13-1-2-2021-06" ,
574
567
},
575
568
" Type" : " AWS::ElasticLoadBalancingV2::Listener" ,
576
569
},
@@ -581,6 +574,14 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
581
574
" Key" : " deletion_protection.enabled" ,
582
575
" Value" : " true" ,
583
576
},
577
+ {
578
+ " Key" : " routing.http.x_amzn_tls_version_and_cipher_suite.enabled" ,
579
+ " Value" : " true" ,
580
+ },
581
+ {
582
+ " Key" : " routing.http.drop_invalid_header_fields.enabled" ,
583
+ " Value" : " true" ,
584
+ },
584
585
{
585
586
" Key" : " idle_timeout.timeout_seconds" ,
586
587
" Value" : " 4" ,
@@ -762,6 +763,42 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
762
763
},
763
764
" Type" : " AWS::IAM::Policy" ,
764
765
},
766
+ " SsmSshPolicy4CFC977E" : {
767
+ " Properties" : {
768
+ " PolicyDocument" : {
769
+ " Statement" : [
770
+ {
771
+ " Action" : [
772
+ " ec2messages:AcknowledgeMessage" ,
773
+ " ec2messages:DeleteMessage" ,
774
+ " ec2messages:FailMessage" ,
775
+ " ec2messages:GetEndpoint" ,
776
+ " ec2messages:GetMessages" ,
777
+ " ec2messages:SendReply" ,
778
+ " ssm:UpdateInstanceInformation" ,
779
+ " ssm:ListInstanceAssociations" ,
780
+ " ssm:DescribeInstanceProperties" ,
781
+ " ssm:DescribeDocumentParameters" ,
782
+ " ssmmessages:CreateControlChannel" ,
783
+ " ssmmessages:CreateDataChannel" ,
784
+ " ssmmessages:OpenControlChannel" ,
785
+ " ssmmessages:OpenDataChannel" ,
786
+ ],
787
+ " Effect" : " Allow" ,
788
+ " Resource" : " *" ,
789
+ },
790
+ ],
791
+ " Version" : " 2012-10-17" ,
792
+ },
793
+ " PolicyName" : " ssm-ssh-policy" ,
794
+ " Roles" : [
795
+ {
796
+ " Ref" : " InstanceRoleMobileappsrenderingEC64402A" ,
797
+ },
798
+ ],
799
+ },
800
+ " Type" : " AWS::IAM::Policy" ,
801
+ },
765
802
" TargetGroupMobileappsrendering29320E35" : {
766
803
" Properties" : {
767
804
" HealthCheckIntervalSeconds" : 10 ,
@@ -916,6 +953,7 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
916
953
" InstanceType" : " t4g.small" ,
917
954
" MetadataOptions" : {
918
955
" HttpTokens" : " required" ,
956
+ " InstanceMetadataTags" : " enabled" ,
919
957
},
920
958
" SecurityGroupIds" : [
921
959
{
@@ -935,6 +973,10 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
935
973
{
936
974
" ResourceType" : " instance" ,
937
975
" Tags" : [
976
+ {
977
+ " Key" : " App" ,
978
+ " Value" : " mobile-apps-rendering" ,
979
+ },
938
980
{
939
981
" Key" : " gu:cdk:version" ,
940
982
" Value" : " TEST" ,
@@ -960,6 +1002,10 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
960
1002
{
961
1003
" ResourceType" : " volume" ,
962
1004
" Tags" : [
1005
+ {
1006
+ " Key" : " App" ,
1007
+ " Value" : " mobile-apps-rendering" ,
1008
+ },
963
1009
{
964
1010
" Key" : " gu:cdk:version" ,
965
1011
" Value" : " TEST" ,
@@ -988,15 +1034,14 @@ exports[`The MobileAppsRendering stack matches the snapshot 1`] = `
988
1034
" Fn::Join" : [
989
1035
" " ,
990
1036
[
991
- " #!/bin/bash -ev
1037
+ " #!/bin/bash
1038
+ set - ev
992
1039
groupadd mapi
993
1040
useradd - r - m - s / usr / bin / nologin - g mapi mobile - apps - rendering
994
-
995
1041
export App = mobile - apps - rendering
996
1042
export Stack = mobile
997
1043
export Stage = TEST
998
1044
export NODE_ENV = production
999
-
1000
1045
aws s3 cp s3 :// ",
1001
1046
{
1002
1047
" Ref" : " SsmParameterValueaccountservicesartifactbucketC96584B6F00A464EAD1953AFF4B05118Parameter" ,
@@ -1005,15 +1050,12 @@ aws s3 cp s3://",
1005
1050
mkdir - p / opt / mobile - apps - rendering
1006
1051
unzip / tmp / mobile - apps - rendering .zip - d / opt / mobile - apps - rendering
1007
1052
chown - R mobile - apps - rendering :mapi / opt / mobile - apps - rendering
1008
-
1009
1053
mkdir - p / usr / share / mobile - apps - rendering / logs
1010
1054
chown - R mobile - apps - rendering :mapi / usr / share / mobile - apps - rendering
1011
1055
ln - s / usr / share / mobile - apps - rendering / logs / var / log / mobile - apps - rendering
1012
1056
chown - R mobile - apps - rendering :mapi / var / log / mobile - apps - rendering
1013
-
1014
1057
export PM2_HOME = " /usr/share/mobile-apps-rendering"
1015
1058
export ASSETS_MANIFEST = " /opt/mobile-apps-rendering/manifest.json"
1016
-
1017
1059
/ usr / local / node / pm2 start -- name mobile - apps - rendering -- uid mobile - apps - rendering -- gid mapi / opt / mobile - apps - rendering / server .js
1018
1060
/ opt / aws - kinesis - agent / configure - aws - kinesis - agent " ,
1019
1061
{
@@ -1030,6 +1072,10 @@ export ASSETS_MANIFEST="/opt/mobile-apps-rendering/manifest.json"
1030
1072
{
1031
1073
" ResourceType" : " launch-template" ,
1032
1074
" Tags" : [
1075
+ {
1076
+ " Key" : " App" ,
1077
+ " Value" : " mobile-apps-rendering" ,
1078
+ },
1033
1079
{
1034
1080
" Key" : " gu:cdk:version" ,
1035
1081
" Value" : " TEST" ,
@@ -1081,6 +1127,7 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1081
1127
" GuEc2App" ,
1082
1128
" GuCertificate" ,
1083
1129
" GuInstanceRole" ,
1130
+ " GuSsmSshPolicy" ,
1084
1131
" GuDescribeEC2Policy" ,
1085
1132
" GuLoggingStreamNameParameter" ,
1086
1133
" GuLogShippingPolicy" ,
@@ -1161,6 +1208,11 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1161
1208
},
1162
1209
},
1163
1210
" MaxSize" : " 2" ,
1211
+ " MetricsCollection" : [
1212
+ {
1213
+ " Granularity" : " 1Minute" ,
1214
+ },
1215
+ ],
1164
1216
" MinSize" : " 1" ,
1165
1217
" Tags" : [
1166
1218
{
@@ -1497,20 +1549,6 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1497
1549
],
1498
1550
" Version" : " 2012-10-17" ,
1499
1551
},
1500
- " ManagedPolicyArns" : [
1501
- {
1502
- " Fn::Join" : [
1503
- " " ,
1504
- [
1505
- " arn:" ,
1506
- {
1507
- " Ref" : " AWS::Partition" ,
1508
- },
1509
- " :iam::aws:policy/AmazonSSMManagedInstanceCore" ,
1510
- ],
1511
- ],
1512
- },
1513
- ],
1514
1552
" Path" : " /" ,
1515
1553
" Tags" : [
1516
1554
{
@@ -1641,6 +1679,7 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1641
1679
},
1642
1680
" Port" : 443 ,
1643
1681
" Protocol" : " HTTPS" ,
1682
+ " SslPolicy" : " ELBSecurityPolicy-TLS13-1-2-2021-06" ,
1644
1683
},
1645
1684
" Type" : " AWS::ElasticLoadBalancingV2::Listener" ,
1646
1685
},
@@ -1651,6 +1690,14 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1651
1690
" Key" : " deletion_protection.enabled" ,
1652
1691
" Value" : " true" ,
1653
1692
},
1693
+ {
1694
+ " Key" : " routing.http.x_amzn_tls_version_and_cipher_suite.enabled" ,
1695
+ " Value" : " true" ,
1696
+ },
1697
+ {
1698
+ " Key" : " routing.http.drop_invalid_header_fields.enabled" ,
1699
+ " Value" : " true" ,
1700
+ },
1654
1701
{
1655
1702
" Key" : " idle_timeout.timeout_seconds" ,
1656
1703
" Value" : " 4" ,
@@ -1832,6 +1879,42 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1832
1879
},
1833
1880
" Type" : " AWS::IAM::Policy" ,
1834
1881
},
1882
+ " SsmSshPolicy4CFC977E" : {
1883
+ " Properties" : {
1884
+ " PolicyDocument" : {
1885
+ " Statement" : [
1886
+ {
1887
+ " Action" : [
1888
+ " ec2messages:AcknowledgeMessage" ,
1889
+ " ec2messages:DeleteMessage" ,
1890
+ " ec2messages:FailMessage" ,
1891
+ " ec2messages:GetEndpoint" ,
1892
+ " ec2messages:GetMessages" ,
1893
+ " ec2messages:SendReply" ,
1894
+ " ssm:UpdateInstanceInformation" ,
1895
+ " ssm:ListInstanceAssociations" ,
1896
+ " ssm:DescribeInstanceProperties" ,
1897
+ " ssm:DescribeDocumentParameters" ,
1898
+ " ssmmessages:CreateControlChannel" ,
1899
+ " ssmmessages:CreateDataChannel" ,
1900
+ " ssmmessages:OpenControlChannel" ,
1901
+ " ssmmessages:OpenDataChannel" ,
1902
+ ],
1903
+ " Effect" : " Allow" ,
1904
+ " Resource" : " *" ,
1905
+ },
1906
+ ],
1907
+ " Version" : " 2012-10-17" ,
1908
+ },
1909
+ " PolicyName" : " ssm-ssh-policy" ,
1910
+ " Roles" : [
1911
+ {
1912
+ " Ref" : " InstanceRoleMobileappsrenderingEC64402A" ,
1913
+ },
1914
+ ],
1915
+ },
1916
+ " Type" : " AWS::IAM::Policy" ,
1917
+ },
1835
1918
" TargetGroupMobileappsrendering29320E35" : {
1836
1919
" Properties" : {
1837
1920
" HealthCheckIntervalSeconds" : 10 ,
@@ -1986,6 +2069,7 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
1986
2069
" InstanceType" : " t4g.micro" ,
1987
2070
" MetadataOptions" : {
1988
2071
" HttpTokens" : " required" ,
2072
+ " InstanceMetadataTags" : " enabled" ,
1989
2073
},
1990
2074
" SecurityGroupIds" : [
1991
2075
{
@@ -2005,6 +2089,10 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
2005
2089
{
2006
2090
" ResourceType" : " instance" ,
2007
2091
" Tags" : [
2092
+ {
2093
+ " Key" : " App" ,
2094
+ " Value" : " mobile-apps-rendering" ,
2095
+ },
2008
2096
{
2009
2097
" Key" : " gu:cdk:version" ,
2010
2098
" Value" : " TEST" ,
@@ -2030,6 +2118,10 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
2030
2118
{
2031
2119
" ResourceType" : " volume" ,
2032
2120
" Tags" : [
2121
+ {
2122
+ " Key" : " App" ,
2123
+ " Value" : " mobile-apps-rendering" ,
2124
+ },
2033
2125
{
2034
2126
" Key" : " gu:cdk:version" ,
2035
2127
" Value" : " TEST" ,
@@ -2058,15 +2150,14 @@ exports[`The MobileAppsRenderingPreview stack matches the snapshot 1`] = `
2058
2150
" Fn::Join" : [
2059
2151
" " ,
2060
2152
[
2061
- " #!/bin/bash -ev
2153
+ " #!/bin/bash
2154
+ set - ev
2062
2155
groupadd mapi
2063
2156
useradd - r - m - s / usr / bin / nologin - g mapi mobile - apps - rendering
2064
-
2065
2157
export App = mobile - apps - rendering
2066
2158
export Stack = mobile - preview
2067
2159
export Stage = TEST
2068
2160
export NODE_ENV = production
2069
-
2070
2161
aws s3 cp s3 :// ",
2071
2162
{
2072
2163
" Ref" : " SsmParameterValueaccountservicesartifactbucketC96584B6F00A464EAD1953AFF4B05118Parameter" ,
@@ -2075,15 +2166,12 @@ aws s3 cp s3://",
2075
2166
mkdir - p / opt / mobile - apps - rendering
2076
2167
unzip / tmp / mobile - apps - rendering .zip - d / opt / mobile - apps - rendering
2077
2168
chown - R mobile - apps - rendering :mapi / opt / mobile - apps - rendering
2078
-
2079
2169
mkdir - p / usr / share / mobile - apps - rendering / logs
2080
2170
chown - R mobile - apps - rendering :mapi / usr / share / mobile - apps - rendering
2081
2171
ln - s / usr / share / mobile - apps - rendering / logs / var / log / mobile - apps - rendering
2082
2172
chown - R mobile - apps - rendering :mapi / var / log / mobile - apps - rendering
2083
-
2084
2173
export PM2_HOME = " /usr/share/mobile-apps-rendering"
2085
2174
export ASSETS_MANIFEST = " /opt/mobile-apps-rendering/manifest.json"
2086
-
2087
2175
/ usr / local / node / pm2 start -- name mobile - apps - rendering -- uid mobile - apps - rendering -- gid mapi / opt / mobile - apps - rendering / server .js
2088
2176
/ opt / aws - kinesis - agent / configure - aws - kinesis - agent " ,
2089
2177
{
@@ -2100,6 +2188,10 @@ export ASSETS_MANIFEST="/opt/mobile-apps-rendering/manifest.json"
2100
2188
{
2101
2189
" ResourceType" : " launch-template" ,
2102
2190
" Tags" : [
2191
+ {
2192
+ " Key" : " App" ,
2193
+ " Value" : " mobile-apps-rendering" ,
2194
+ },
2103
2195
{
2104
2196
" Key" : " gu:cdk:version" ,
2105
2197
" Value" : " TEST" ,
0 commit comments