Skip to content

Commit

Permalink
try another config
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Balcaen authored and Joel Balcaen committed Mar 26, 2024
1 parent aca376f commit 2ed83b0
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 2ed83b0

Please sign in to comment.