Skip to content

Commit

Permalink
fix IAM bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Oct 4, 2024
1 parent ad4e076 commit 6c332b5
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions blue/slack/send-post/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,12 @@ resource "aws_iam_role_policy" "events" {

policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Sid = "InvokeFunction"
Effect = "Allow"
Action = "lambda:InvokeFunction"
Resource = data.aws_lambda_function.http.arn
},
{
Sid = "UpdateItem"
Effect = "Allow"
Action = "dynamodb:UpdateItem"
Resource = data.aws_dynamodb_table.table.arn
}
]
Statement = {
Sid = "StartExecution"
Effect = "Allow"
Action = "states:StartExecution"
Resource = aws_sfn_state_machine.states.arn
}
})
}

Expand Down

0 comments on commit 6c332b5

Please sign in to comment.