Skip to content

Commit

Permalink
Merge pull request #87 from FloRul/email-receipt-sender
Browse files Browse the repository at this point in the history
try another config
  • Loading branch information
joelbalcaen authored Mar 26, 2024
2 parents e8b15c6 + 2ed83b0 commit b79dfa5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions lambdas/email_receipt_confirmation/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,18 @@ module "lambda_function_container_image" {

ses = {
effect = "Allow"
resources = [local.ses_arn]
actions = ["ses:SendEmail"]
resources = [local.ses_arn, "arn:aws:ses:${var.aws_region}:${data.aws_caller_identity.current.account_id}:*"]
actions = ["ses:SendEmail", "ses:SendRawEmail"]
}


create_current_version_allowed_triggers = false

allowed_triggers = {
ses = {
principal = "ses.amazonaws.com"
source_arn = "arn:aws:ses:${var.aws_region}:${data.aws_caller_identity.current.account_id}:receipt-rule-set/${var.rule_set_name}:receipt-rule/${var.chat_rule_name}"
}
}
}
}

0 comments on commit b79dfa5

Please sign in to comment.