Repository navigation
Stop double-quoting the ses module's SPF record - #298
Merged
Merged
Conversation
Contributor
|
Terraform plan in terraform Plan: 1 to add, 0 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.food-oasis.module.ses_foodoasis_net.aws_route53_record.mail_from["spf"] will be created
+ resource "aws_route53_record" "mail_from" {
+ allow_overwrite = (known after apply)
+ fqdn = (known after apply)
+ id = (known after apply)
+ name = "bounce.foodoasis.net"
+ records = [
+ "v=spf1 include:amazonses.com ~all",
]
+ ttl = 1800
+ type = "TXT"
+ zone_id = "********************"
}
Plan: 1 to add, 0 to change, 0 to destroy.✅ Plan applied in Terraform apply (OIDC) #123 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the failed apply from #297.
modules/sesquoted the SPF TXT value itself, but the AWS provider already adds the quotes Route 53 needs, so Route 53 received""v=spf1 include:amazonses.com ~all""and rejected it withInvalidCharacterString. The MAIL FROM attributes and the MX record were created; the TXT record was not. This writes the value unquoted, the same way the other TXT records in the repo are written.Expected plan: 1 to add (the
bounce.foodoasis.netTXT record), 0 to change, 0 to destroy.Mail is unaffected meanwhile: the MAIL FROM status is
PENDINGandUSE_DEFAULT_VALUEkeeps SES on its own envelope sender.