Skip to content

Commit fe3923b

Browse files
committed
Prepare to delete legacy infrastructure
1 parent 566f853 commit fe3923b

4 files changed

Lines changed: 0 additions & 25 deletions

File tree

cdk/lib/__snapshots__/report.test.ts.snap

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,6 @@ exports[`The Report stack matches the snapshot for CODE 1`] = `
210210
"PropagateAtLaunch": true,
211211
"Value": "guardian/mobile-n10n",
212212
},
213-
{
214-
"Key": "gu:riffraff:new-asg",
215-
"PropagateAtLaunch": true,
216-
"Value": "true",
217-
},
218213
{
219214
"Key": "LogKinesisStreamName",
220215
"PropagateAtLaunch": true,
@@ -1678,11 +1673,6 @@ exports[`The Report stack matches the snapshot for PROD 1`] = `
16781673
"PropagateAtLaunch": true,
16791674
"Value": "guardian/mobile-n10n",
16801675
},
1681-
{
1682-
"Key": "gu:riffraff:new-asg",
1683-
"PropagateAtLaunch": true,
1684-
"Value": "true",
1685-
},
16861676
{
16871677
"Key": "LogKinesisStreamName",
16881678
"PropagateAtLaunch": true,

cdk/lib/report.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { GuStack } from '@guardian/cdk/lib/constructs/core';
99
import { GuCname } from '@guardian/cdk/lib/constructs/dns';
1010
import { GuAllowPolicy } from '@guardian/cdk/lib/constructs/iam';
1111
import type { App } from 'aws-cdk-lib';
12-
import { Tags } from 'aws-cdk-lib';
1312
import { Duration } from 'aws-cdk-lib';
1413
import type { CfnAutoScalingGroup } from 'aws-cdk-lib/aws-autoscaling';
1514
import { InstanceClass, InstanceSize, InstanceType } from 'aws-cdk-lib/aws-ec2';
@@ -103,9 +102,6 @@ export class Report extends GuStack {
103102
`/opt/aws-kinesis-agent/configure-aws-kinesis-agent ${this.region} mobile-log-aggregation-${this.stage} /var/log/${app}/application.log`,
104103
);
105104

106-
// This is needed to dual-stack; it can be removed once the legacy infrastructure is cleaned up
107-
Tags.of(playApp.autoScalingGroup).add('gu:riffraff:new-asg', 'true');
108-
109105
const vpcParameter = GuVpcParameter.getInstance(this);
110106
// This is necessary whilst dual-stacking because there is already a parameter called VpcId in the YAML template
111107
// Once the YAML template has been removed we should be able to drop this override

report/conf/report.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,6 @@ Resources:
210210
- autoscaling:EC2_INSTANCE_LAUNCH_ERROR
211211
- autoscaling:EC2_INSTANCE_TERMINATE_ERROR
212212
TopicARN: !Sub arn:aws:sns:eu-west-1:${AWS::AccountId}:AutoscalingNotifications${Stage}
213-
Tags:
214-
- Key: Stage
215-
PropagateAtLaunch: true
216-
Value: !Ref Stage
217-
- Key: Stack
218-
PropagateAtLaunch: true
219-
Value: !FindInMap [Constants, Stack, Value]
220-
- Key: App
221-
PropagateAtLaunch: true
222-
Value: !FindInMap [Constants, App, Value]
223213
VPCZoneIdentifier: !Ref PrivateSubnets
224214
ReportLaunchConfig:
225215
Type: AWS::AutoScaling::LaunchConfiguration

report/conf/riff-raff.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ deployments:
1616
report:
1717
type: autoscaling
1818
parameters:
19-
asgMigrationInProgress: true
2019
bucketSsmLookup: true
2120
bucketSsmKey: /account/services/artifact.bucket.n10n
2221
dependencies: [report-cfn]

0 commit comments

Comments
 (0)