We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9eb69a1 + 6c4711a commit bfd86abCopy full SHA for bfd86ab
infrastructure/live/external/mail.tf
@@ -29,8 +29,12 @@ resource "aws_ses_email_identity" "allowed_identities" {
29
# --<Policies configuration>----------------------------------------------------
30
data "aws_iam_policy_document" "transaction_mailer" {
31
statement {
32
- actions = ["ses:SendEmail", "ses:SendRawEmail"]
33
- resources = [for _, id in aws_ses_email_identity.allowed_identities : id.arn]
+ actions = ["ses:SendEmail", "ses:SendRawEmail"]
+ resources = concat(
34
+ [aws_ses_email_identity.noreply.arn],
35
+ [for _, id in aws_ses_email_identity.allowed_identities : id.arn],
36
+ )
37
+
38
condition {
39
test = "StringEquals"
40
variable = "ses:FromAddress"
0 commit comments