Skip to content

Commit

Permalink
Configure DNS for test Fastly service
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwinch committed Jun 11, 2024
1 parent 772c282 commit 54d38a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cdk/lib/__snapshots__/cdk-playground.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Object {
"GuApplicationTargetGroup",
"GuHttpsApplicationListener",
"GuCname",
"GuCname",
"GuApiLambda",
"GuCertificate",
"GuCname",
Expand Down Expand Up @@ -275,6 +276,18 @@ Object {
},
"Type": "Guardian::DNS::RecordSet",
},
"FastlyDNS": Object {
"Properties": Object {
"Name": "cdn-playground.gutools.co.uk",
"RecordType": "CNAME",
"ResourceRecords": Array [
"dualstack.guardian.map.fastly.net",
],
"Stage": "PROD",
"TTL": 3600,
},
"Type": "Guardian::DNS::RecordSet",
},
"GetDistributablePolicyCdkplaygroundBFB4D02B": Object {
"Properties": Object {
"PolicyDocument": Object {
Expand Down
9 changes: 9 additions & 0 deletions cdk/lib/cdk-playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ export class CdkPlayground extends GuStack {
resourceRecord: loadBalancer.loadBalancerDnsName,
});

// This is a temporary domain name to support testing with a Fastly service.
// It will be removed when testing is complete.
new GuCname(this, 'FastlyDNS', {
app: ec2App,
ttl: Duration.hours(1),
domainName: 'cdn-playground.gutools.co.uk',
resourceRecord: 'dualstack.guardian.map.fastly.net',
});

const lambdaApp = 'cdk-playground-lambda';
const lambdaDomainName = 'cdk-playground-lambda.gutools.co.uk';

Expand Down

0 comments on commit 54d38a8

Please sign in to comment.