Skip to content

Stop double-quoting the ses module's SPF record - #298

Merged
ale210 merged 1 commit into
mainfrom
ses-mail-from-txt-quoting
Nov 20, 2026
Merged

ale210 merged 1 commit into
mainfrom
ses-mail-from-txt-quoting

Conversation

@ale210

@ale210 ale210 commented Nov 20, 2026

Copy link
Copy Markdown
Member

Fixes the failed apply from #297.

modules/ses quoted 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 with InvalidCharacterString. 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.net TXT record), 0 to change, 0 to destroy.

Mail is unaffected meanwhile: the MAIL FROM status is PENDING and USE_DEFAULT_VALUE keeps SES on its own envelope sender.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Terraform plan in terraform
With backend config files: terraform/prod.backend.tfvars

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

@ale210
ale210 merged commit cd124de into main Nov 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant