diff --git a/cdk/lib/__snapshots__/cdk-playground.test.ts.snap b/cdk/lib/__snapshots__/cdk-playground.test.ts.snap index 90bcf126..157665cd 100644 --- a/cdk/lib/__snapshots__/cdk-playground.test.ts.snap +++ b/cdk/lib/__snapshots__/cdk-playground.test.ts.snap @@ -24,6 +24,7 @@ Object { "GuApplicationTargetGroup", "GuHttpsApplicationListener", "GuCname", + "GuCname", "GuApiLambda", "GuCertificate", "GuCname", @@ -275,6 +276,18 @@ Object { }, "Type": "Guardian::DNS::RecordSet", }, + "FastlyDRTestDNS": Object { + "Properties": Object { + "Name": "cdk-status-resources.guardianapis.com", + "RecordType": "CNAME", + "ResourceRecords": Array [ + "dualstack.guardian.map.fastly.net", + ], + "Stage": "PROD", + "TTL": 3600, + }, + "Type": "Guardian::DNS::RecordSet", + }, "GetDistributablePolicyCdkplaygroundBFB4D02B": Object { "Properties": Object { "PolicyDocument": Object { diff --git a/cdk/lib/cdk-playground.ts b/cdk/lib/cdk-playground.ts index 1b7c2449..69443570 100644 --- a/cdk/lib/cdk-playground.ts +++ b/cdk/lib/cdk-playground.ts @@ -24,6 +24,9 @@ export class CdkPlayground extends GuStack { const ec2App = 'cdk-playground'; const ec2AppDomainName = 'cdk-playground.gutools.co.uk'; + //New domain added for Fastly disaster recovery testing. Will be deleted after this testing is complete + //todo - delete fastlyTestDomainName once the Fastly disaster recovery testing is complete. + const fastlyDRTestDomainName = 'cdk-status-resources.guardianapis.com'; const { loadBalancer } = new GuPlayApp(this, { app: ec2App, @@ -50,6 +53,16 @@ export class CdkPlayground extends GuStack { imageRecipe: 'developerPlayground-arm64-java11', }); + // This is a temporary domain name for use in some ongoing Fastly Disaster Recovery testing + // It will be removed after this testing is complete + // todo - remove this Cname after Fastly disaster recovery testing is complete + new GuCname(this, 'FastlyDRTestDNS', { + app: ec2App, + ttl: Duration.hours(1), + domainName: fastlyDRTestDomainName, + resourceRecord: 'dualstack.guardian.map.fastly.net', + }); + new GuCname(this, 'EC2AppDNS', { app: ec2App, ttl: Duration.hours(1),