From 22b1e4eb74df700ac6ff15e1c52045d09e55d343 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Tue, 26 Mar 2024 09:41:10 -0300 Subject: [PATCH] remove allowed triggers --- lambdas/email_receipt_confirmation/lambda.tf | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lambdas/email_receipt_confirmation/lambda.tf b/lambdas/email_receipt_confirmation/lambda.tf index e943134..5754b0d 100644 --- a/lambdas/email_receipt_confirmation/lambda.tf +++ b/lambdas/email_receipt_confirmation/lambda.tf @@ -54,19 +54,8 @@ module "lambda_function_container_image" { ses = { effect = "Allow" - resources = [local.ses_arn, "${local.ses_arn}/*"] + resources = [local.ses_arn, "${local.ses_arn}/*:*"] actions = ["ses:SendEmail"] - } - } - - 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}" } } - }