@@ -76,6 +76,14 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
7676 " Description" : " The HostedZone, should contain the trailing dot zone.example.com." ,
7777 " Type" : " String" ,
7878 },
79+ " LoggingStreamName" : {
80+ " AllowedValues" : [
81+ " /account/services/logging.stream.name.code" ,
82+ " /account/services/logging.stream.name" ,
83+ ],
84+ " Description" : " SSM parameter containing the Name (not ARN) on the kinesis stream" ,
85+ " Type" : " AWS::SSM::Parameter::Value<String>" ,
86+ },
7987 " NotEnough200sPerDayThreshold" : {
8088 " Description" : " Alarm if less than too many 200s. This value was based on just below 2 standard deviations from the mean over 6 weeks of data." ,
8189 " Type" : " Number" ,
@@ -156,7 +164,10 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
156164 },
157165 },
158166 {
159- " Action" : " ec2:DescribeTags" ,
167+ " Action" : [
168+ " ec2:DescribeTags" ,
169+ " ec2:DescribeInstances" ,
170+ ],
160171 " Effect" : " Allow" ,
161172 " Resource" : " *" ,
162173 },
@@ -729,6 +740,13 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
729740 " PropagateAtLaunch" : true ,
730741 " Value" : " guardian/mobile-n10n" ,
731742 },
743+ {
744+ " Key" : " LogKinesisStreamName" ,
745+ " PropagateAtLaunch" : true ,
746+ " Value" : {
747+ " Ref" : " LoggingStreamName" ,
748+ },
749+ },
732750 {
733751 " Key" : " Stack" ,
734752 " PropagateAtLaunch" : true ,
@@ -739,6 +757,11 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
739757 " PropagateAtLaunch" : true ,
740758 " Value" : " CODE" ,
741759 },
760+ {
761+ " Key" : " SystemdUnit" ,
762+ " PropagateAtLaunch" : true ,
763+ " Value" : " registration.service" ,
764+ },
742765 ],
743766 " VPCZoneIdentifier" : {
744767 " Ref" : " PrivateSubnets" ,
@@ -781,7 +804,6 @@ exports[`The Registration stack matches the snapshot for CODE 1`] = `
781804 " #!/bin/bash -ev
782805aws -- region \$ {AWS::Region } s3 cp s3 :// \${DistBucket}/\${Stack}/\${Stage}/\${App}/\${App}_1.0-latest_all.deb /tmp
783806dpkg - i / tmp / \$ {App }_1 .0 - latest_all .deb
784- / opt / aws - kinesis - agent / configure - aws - kinesis - agent \$ {AWS::Region } mobile - log - aggregation - \$ {Stage } / var / log / \$ {App }/ application .log
785807" ,
786808 {
787809 " App" : {
@@ -907,6 +929,14 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
907929 " Description" : " The HostedZone, should contain the trailing dot zone.example.com." ,
908930 " Type" : " String" ,
909931 },
932+ " LoggingStreamName" : {
933+ " AllowedValues" : [
934+ " /account/services/logging.stream.name.code" ,
935+ " /account/services/logging.stream.name" ,
936+ ],
937+ " Description" : " SSM parameter containing the Name (not ARN) on the kinesis stream" ,
938+ " Type" : " AWS::SSM::Parameter::Value<String>" ,
939+ },
910940 " NotEnough200sPerDayThreshold" : {
911941 " Description" : " Alarm if less than too many 200s. This value was based on just below 2 standard deviations from the mean over 6 weeks of data." ,
912942 " Type" : " Number" ,
@@ -987,7 +1017,10 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
9871017 },
9881018 },
9891019 {
990- " Action" : " ec2:DescribeTags" ,
1020+ " Action" : [
1021+ " ec2:DescribeTags" ,
1022+ " ec2:DescribeInstances" ,
1023+ ],
9911024 " Effect" : " Allow" ,
9921025 " Resource" : " *" ,
9931026 },
@@ -1560,6 +1593,13 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
15601593 " PropagateAtLaunch" : true ,
15611594 " Value" : " guardian/mobile-n10n" ,
15621595 },
1596+ {
1597+ " Key" : " LogKinesisStreamName" ,
1598+ " PropagateAtLaunch" : true ,
1599+ " Value" : {
1600+ " Ref" : " LoggingStreamName" ,
1601+ },
1602+ },
15631603 {
15641604 " Key" : " Stack" ,
15651605 " PropagateAtLaunch" : true ,
@@ -1570,6 +1610,11 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
15701610 " PropagateAtLaunch" : true ,
15711611 " Value" : " PROD" ,
15721612 },
1613+ {
1614+ " Key" : " SystemdUnit" ,
1615+ " PropagateAtLaunch" : true ,
1616+ " Value" : " registration.service" ,
1617+ },
15731618 ],
15741619 " VPCZoneIdentifier" : {
15751620 " Ref" : " PrivateSubnets" ,
@@ -1612,7 +1657,6 @@ exports[`The Registration stack matches the snapshot for PROD 1`] = `
16121657 " #!/bin/bash -ev
16131658aws -- region \$ {AWS::Region } s3 cp s3 :// \${DistBucket}/\${Stack}/\${Stage}/\${App}/\${App}_1.0-latest_all.deb /tmp
16141659dpkg - i / tmp / \$ {App }_1 .0 - latest_all .deb
1615- / opt / aws - kinesis - agent / configure - aws - kinesis - agent \$ {AWS::Region } mobile - log - aggregation - \$ {Stage } / var / log / \$ {App }/ application .log
16161660" ,
16171661 {
16181662 " App" : {
0 commit comments