Skip to content

Commit

Permalink
Merge pull request #85 from FloRul/email-receipt-sender
Browse files Browse the repository at this point in the history
remove allowed triggers
  • Loading branch information
joelbalcaen authored Mar 26, 2024
2 parents ad0a9ee + 22b1e4e commit de83a20
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lambdas/email_receipt_confirmation/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}

}

0 comments on commit de83a20

Please sign in to comment.