Skip to content

Commit ec38dcb

Browse files
committed
Update snapshot
1 parent 75e0cb4 commit ec38dcb

File tree

1 file changed

+67
-16
lines changed

1 file changed

+67
-16
lines changed

dotcom-rendering/cdk/lib/__snapshots__/renderingStack.test.ts.snap

Lines changed: 67 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
1414
"GuEc2App",
1515
"GuCertificate",
1616
"GuInstanceRole",
17+
"GuSsmSshPolicy",
1718
"GuDescribeEC2Policy",
1819
"GuLoggingStreamNameParameter",
1920
"GuLogShippingPolicy",
@@ -24,7 +25,7 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
2425
"GuWazuhAccess",
2526
"GuAutoScalingGroup",
2627
"GuApplicationLoadBalancer",
27-
"GuStringParameter",
28+
"GuAccessLoggingBucketParameter",
2829
"GuApplicationTargetGroup",
2930
"GuHttpsApplicationListener",
3031
"GuSecurityGroup",
@@ -206,6 +207,11 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
206207
},
207208
},
208209
"MaxSize": "4",
210+
"MetricsCollection": [
211+
{
212+
"Granularity": "1Minute",
213+
},
214+
],
209215
"MinSize": "1",
210216
"Tags": [
211217
{
@@ -707,20 +713,6 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
707713
],
708714
"Version": "2012-10-17",
709715
},
710-
"ManagedPolicyArns": [
711-
{
712-
"Fn::Join": [
713-
"",
714-
[
715-
"arn:",
716-
{
717-
"Ref": "AWS::Partition",
718-
},
719-
":iam::aws:policy/AmazonSSMManagedInstanceCore",
720-
],
721-
],
722-
},
723-
],
724716
"Path": "/",
725717
"Tags": [
726718
{
@@ -1038,6 +1030,7 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
10381030
},
10391031
"Port": 443,
10401032
"Protocol": "HTTPS",
1033+
"SslPolicy": "ELBSecurityPolicy-TLS13-1-2-2021-06",
10411034
},
10421035
"Type": "AWS::ElasticLoadBalancingV2::Listener",
10431036
},
@@ -1048,6 +1041,14 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
10481041
"Key": "deletion_protection.enabled",
10491042
"Value": "true",
10501043
},
1044+
{
1045+
"Key": "routing.http.x_amzn_tls_version_and_cipher_suite.enabled",
1046+
"Value": "true",
1047+
},
1048+
{
1049+
"Key": "routing.http.drop_invalid_header_fields.enabled",
1050+
"Value": "true",
1051+
},
10511052
{
10521053
"Key": "access_logs.s3.enabled",
10531054
"Value": "true",
@@ -1267,6 +1268,42 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
12671268
},
12681269
"Type": "AWS::SSM::Parameter",
12691270
},
1271+
"SsmSshPolicy4CFC977E": {
1272+
"Properties": {
1273+
"PolicyDocument": {
1274+
"Statement": [
1275+
{
1276+
"Action": [
1277+
"ec2messages:AcknowledgeMessage",
1278+
"ec2messages:DeleteMessage",
1279+
"ec2messages:FailMessage",
1280+
"ec2messages:GetEndpoint",
1281+
"ec2messages:GetMessages",
1282+
"ec2messages:SendReply",
1283+
"ssm:UpdateInstanceInformation",
1284+
"ssm:ListInstanceAssociations",
1285+
"ssm:DescribeInstanceProperties",
1286+
"ssm:DescribeDocumentParameters",
1287+
"ssmmessages:CreateControlChannel",
1288+
"ssmmessages:CreateDataChannel",
1289+
"ssmmessages:OpenControlChannel",
1290+
"ssmmessages:OpenDataChannel",
1291+
],
1292+
"Effect": "Allow",
1293+
"Resource": "*",
1294+
},
1295+
],
1296+
"Version": "2012-10-17",
1297+
},
1298+
"PolicyName": "ssm-ssh-policy",
1299+
"Roles": [
1300+
{
1301+
"Ref": "InstanceRoleArticlerendering0D4717E8",
1302+
},
1303+
],
1304+
},
1305+
"Type": "AWS::IAM::Policy",
1306+
},
12701307
"TargetGroupArticlerendering3605E498": {
12711308
"Properties": {
12721309
"HealthCheckIntervalSeconds": 10,
@@ -1536,6 +1573,7 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
15361573
"InstanceType": "t4g.micro",
15371574
"MetadataOptions": {
15381575
"HttpTokens": "required",
1576+
"InstanceMetadataTags": "enabled",
15391577
},
15401578
"SecurityGroupIds": [
15411579
{
@@ -1555,6 +1593,10 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
15551593
{
15561594
"ResourceType": "instance",
15571595
"Tags": [
1596+
{
1597+
"Key": "App",
1598+
"Value": "article-rendering",
1599+
},
15581600
{
15591601
"Key": "gu:cdk:version",
15601602
"Value": "TEST",
@@ -1580,6 +1622,10 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
15801622
{
15811623
"ResourceType": "volume",
15821624
"Tags": [
1625+
{
1626+
"Key": "App",
1627+
"Value": "article-rendering",
1628+
},
15831629
{
15841630
"Key": "gu:cdk:version",
15851631
"Value": "TEST",
@@ -1608,7 +1654,8 @@ exports[`The RenderingCDKStack matches the snapshot 1`] = `
16081654
"Fn::Join": [
16091655
"",
16101656
[
1611-
"#!/bin/bash -ev
1657+
"#!/bin/bash
1658+
#!/bin/bash -ev
16121659
groupadd frontend
16131660
useradd -r -m -s /usr/bin/nologin -g frontend dotcom-rendering
16141661
cd /home/dotcom-rendering
@@ -1654,6 +1701,10 @@ systemctl start article-rendering",
16541701
{
16551702
"ResourceType": "launch-template",
16561703
"Tags": [
1704+
{
1705+
"Key": "App",
1706+
"Value": "article-rendering",
1707+
},
16571708
{
16581709
"Key": "gu:cdk:version",
16591710
"Value": "TEST",

0 commit comments

Comments
 (0)