Skip to content

Commit

Permalink
Update ses_bounce.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed May 1, 2024
1 parent d730006 commit de89c5c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions terraform/environments/delius-jitbit/ses_bounce.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,15 @@ resource "aws_lambda_function" "bounce_email_notification" {

resource "aws_iam_role" "lambda_bounce_email_notification" {
name = "bounce_email_notification-role"
assume_role_policy = data.aws_iam_policy_document.lambda_assume_role_policy_bounce_email_notification.json
assume_role_policy = data.aws_iam_policy_document.lambda_assume_role_policy.json

tags = local.tags
}

data "aws_iam_policy_document" "lambda_assume_role_policy_bounce_email_notification" {
statement {
actions = ["sts:AssumeRole"]
principals {
type = "Service"
identifiers = ["lambda.amazonaws.com"]
}
}
}

resource "aws_iam_role_policy" "lambda_bounce_email_notification" {
name = "lambda"
role = aws_iam_role.lambda_bounce_email_notification.id
policy = data.aws_iam_policy_document.lambda_assume_role_policy_bounce_email_notification.json
policy = data.aws_iam_policy_document.lambda_policy_bounce_email_notification.json
}

data "aws_iam_policy_document" "lambda_policy_bounce_email_notification" {
Expand Down

0 comments on commit de89c5c

Please sign in to comment.