Skip to content

Commit

Permalink
aws_iam_role_policy_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Apr 6, 2024
1 parent b900a6e commit 15afc63
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infra/modules/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ resource "aws_iam_policy" "lambda_invoke_policy" {
})
}

resource "aws_iam_policy_attachment" "lambda_invoke_policy_attachment" {
name = "lambda_invoke_policy_attachment"
roles = [aws_iam_role.lambda_role.name]
resource "aws_iam_role_policy_attachment" "lambda_invoke_policy_attachment" {
role = aws_iam_role.lambda_role.name
policy_arn = aws_iam_policy.lambda_invoke_policy.arn
}

0 comments on commit 15afc63

Please sign in to comment.