File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,11 @@ exports[`The Notification stack matches the snapshot for CODE 1`] = `
274274 " PropagateAtLaunch" : true ,
275275 " Value" : " guardian/mobile-n10n" ,
276276 },
277+ {
278+ " Key" : " gu:riffraff:new-asg" ,
279+ " PropagateAtLaunch" : true ,
280+ " Value" : " true" ,
281+ },
277282 {
278283 " Key" : " LogKinesisStreamName" ,
279284 " PropagateAtLaunch" : true ,
@@ -2458,6 +2463,11 @@ exports[`The Notification stack matches the snapshot for PROD 1`] = `
24582463 " PropagateAtLaunch" : true ,
24592464 " Value" : " guardian/mobile-n10n" ,
24602465 },
2466+ {
2467+ " Key" : " gu:riffraff:new-asg" ,
2468+ " PropagateAtLaunch" : true ,
2469+ " Value" : " true" ,
2470+ },
24612471 {
24622472 " Key" : " LogKinesisStreamName" ,
24632473 " PropagateAtLaunch" : true ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
1111} from '@guardian/cdk/lib/constructs/core' ;
1212import { GuAllowPolicy } from '@guardian/cdk/lib/constructs/iam' ;
1313import type { App } from 'aws-cdk-lib' ;
14- import { Duration } from 'aws-cdk-lib' ;
14+ import { Duration , Tags } from 'aws-cdk-lib' ;
1515import type { CfnAutoScalingGroup } from 'aws-cdk-lib/aws-autoscaling' ;
1616import { Table } from 'aws-cdk-lib/aws-dynamodb' ;
1717import { InstanceClass , InstanceSize , InstanceType } from 'aws-cdk-lib/aws-ec2' ;
@@ -166,6 +166,8 @@ export class Notification extends GuStack {
166166 const cfnAsg = autoScalingGroup . node . defaultChild as CfnAutoScalingGroup ;
167167 cfnAsg . healthCheckGracePeriod = Duration . seconds ( 400 ) . toSeconds ( ) ;
168168
169+ Tags . of ( autoScalingGroup ) . add ( 'gu:riffraff:new-asg' , 'true' ) ;
170+
169171 adjustCloudformationParameters ( this ) ;
170172
171173 // This is necessary whilst dual-stacking because there is already a parameter called VpcId in the YAML template
You can’t perform that action at this time.
0 commit comments