Skip to content

Commit

Permalink
🐛 (infra-live): Add missing SES identity (#79)
Browse files Browse the repository at this point in the history
The noreply identity was not allowed to send mail using SES service.
  • Loading branch information
xunleii committed May 19, 2024
2 parents 4a3785a + a19c5f7 commit 9f39128
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions infrastructure/live/external/mail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ resource "aws_ses_email_identity" "allowed_identities" {
# --<Policies configuration>----------------------------------------------------
data "aws_iam_policy_document" "transaction_mailer" {
statement {
actions = ["ses:SendEmail", "ses:SendRawEmail"]
resources = [for _, id in aws_ses_email_identity.allowed_identities : id.arn]
actions = ["ses:SendEmail", "ses:SendRawEmail"]
resources = concat(
[aws_ses_email_identity.noreply.arn],
[for _, id in aws_ses_email_identity.allowed_identities : id.arn],
)

condition {
test = "StringEquals"
variable = "ses:FromAddress"
Expand Down

0 comments on commit 9f39128

Please sign in to comment.