Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cdk/lib/email-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,17 @@ export class StormdeckEmailStack extends Stack {
identity: ses.Identity.publicHostedZone(zone),
});

// SPF — authorize Amazon SES to send for the domain.
// Apex TXT record set. Route 53 allows only one TXT record-set per name, so
// the SPF policy (authorizing Amazon SES to send) and the Google Search
// Console domain-verification string share this single record. (Logical id
// stays 'Spf' so CFN updates the values in place, not replacing the record.)
new route53.TxtRecord(this, 'Spf', {
zone,
recordName: DOMAIN,
values: ['v=spf1 include:amazonses.com ~all'],
values: [
'v=spf1 include:amazonses.com ~all',
'google-site-verification=bEdN5MsLRKcHmi5xlGSQRal-T7iLtQnR9LKO9EkAvFQ',
],
});

// DMARC — monitor mode to start; tighten after watching reports.
Expand Down