Skip to content

Commit 140f6e8

Browse files
authored
Reduce TTL for report's DNS record (#1592)
1 parent 6414759 commit 140f6e8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ exports[`The Report stack matches the snapshot for CODE 1`] = `
363363
"report.notifications-aws.code.dev-guardianapis.com.",
364364
],
365365
"Stage": "CODE",
366-
"TTL": 3600,
366+
"TTL": 60,
367367
},
368368
"Type": "Guardian::DNS::RecordSet",
369369
},
@@ -1826,7 +1826,7 @@ exports[`The Report stack matches the snapshot for PROD 1`] = `
18261826
"report.notifications-aws.guardianapis.com.",
18271827
],
18281828
"Stage": "PROD",
1829-
"TTL": 3600,
1829+
"TTL": 60,
18301830
},
18311831
"Type": "Guardian::DNS::RecordSet",
18321832
},

cdk/lib/report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class Report extends GuStack {
153153
// For now we are still routing traffic via the intermediate CNAME, which points at the legacy ELB.
154154
// To complete the migration, we'll remove this intermediate CNAME and point at playApp.loadBalancer.loadBalancerDnsName.
155155
resourceRecord: props.intermediateCname,
156-
ttl: Duration.seconds(3600),
156+
ttl: Duration.seconds(60),
157157
});
158158
}
159159
}

0 commit comments

Comments
 (0)