-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete environment w/ aws-nuke (#1567)
* removing us-east login * wait on vpn * sandbox common * sandbox * nuke * Sandbox deleting, hopefully everything deleting * [review] cleanup * increase retry limit on 2nd aws-nuke run * Parameterizing * patch k8s ami now uses 1pass
- Loading branch information
Showing
33 changed files
with
2,598 additions
and
780 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,95 +4,112 @@ resource "aws_route53_zone" "notification-sandbox" { | |
} | ||
|
||
resource "aws_route53_record" "notification-sandbox-MX" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = var.domain | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 inbound-smtp.us-east-1.amazonaws.com"] | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = var.domain | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 inbound-smtp.us-east-1.amazonaws.com"] | ||
} | ||
|
||
resource "aws_route53_record" "bounce-notification-sandbox-MX" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.${var.domain}" | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 feedback-smtp.ca-central-1.amazonses.com"] | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.${var.domain}" | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 feedback-smtp.ca-central-1.amazonses.com"] | ||
} | ||
|
||
resource "aws_route53_record" "bounce-custom-notification-sandbox-MX" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.custom-sending-domain.${var.domain}" | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 feedback-smtp.ca-central-1.amazonses.com"] | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.custom-sending-domain.${var.domain}" | ||
type = "MX" | ||
ttl = "300" | ||
records = ["10 feedback-smtp.ca-central-1.amazonses.com"] | ||
} | ||
|
||
resource "aws_route53_record" "ses-notification-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "_amazonses.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "_amazonses.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["vJFwJM0wnPRWKFXsoiVl9/gLXFP4RL5Xfl4C9JTp3VI=", | ||
"AwTGEoIByR4QGirawhDmRdJmxFO/U0fX3NMrSOJpuI4=" | ||
] | ||
} | ||
|
||
resource "aws_route53_record" "dmarc-notification-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "_dmarc.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]"] | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "_dmarc.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]"] | ||
} | ||
|
||
resource "aws_route53_record" "notification-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = var.domain | ||
type = "TXT" | ||
ttl = "300" | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = var.domain | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["v=spf1 include:amazonses.com ~all", | ||
"google-site-verification=u0zkO-jbYi1qW2G65mfXbuNl14BCO1O9uk-BV2wTlD8" | ||
] | ||
} | ||
|
||
resource "aws_route53_record" "bounce-notification-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["v=spf1 include:amazonses.com ~all"] | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "bounce.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["v=spf1 include:amazonses.com ~all"] | ||
} | ||
|
||
resource "aws_route53_record" "custom-domain-aws-ses-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
provider = aws.dns | ||
name = "_amazonses.custom-sending-domain.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["fXT/J45wZcUoBSnJAwPyfnHVf5E2b7aNayCC5PeQltg="] | ||
count = var.env == "production" ? 0 : 1 | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
name = "_amazonses.custom-sending-domain.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["fXT/J45wZcUoBSnJAwPyfnHVf5E2b7aNayCC5PeQltg="] | ||
} | ||
|
||
resource "aws_route53_record" "custom-domain-ses-sandbox-TXT" { | ||
count = var.env == "staging" ? 1 : 0 | ||
provider = aws.dns | ||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "custom-sending-domain.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["amazonses:fXT/J45wZcUoBSnJAwPyfnHVf5E2b7aNayCC5PeQltg="] | ||
} | ||
count = var.env == "production" ? 0 : 1 | ||
provider = aws.dns | ||
allow_overwrite = true | ||
|
||
zone_id = var.env == "staging" ? aws_route53_zone.notification-sandbox[0].zone_id : var.hosted_zone_id | ||
name = "custom-sending-domain.${var.domain}" | ||
type = "TXT" | ||
ttl = "300" | ||
records = ["amazonses:fXT/J45wZcUoBSnJAwPyfnHVf5E2b7aNayCC5PeQltg="] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.