Skip to content

Commit

Permalink
Fixed policy format
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronaldo Macapobre committed Nov 15, 2024
1 parent 51dc948 commit fc1e0da
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions infrastructure/cloud/modules/APIGateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ resource "aws_api_gateway_rest_api_policy" "apigw_rest_api_policy" {
Version = "2012-10-17"
Statement = [
{
Effect = "Allow"
Principal = var.ecs_execution_role_arn
Action = "execute-api:Invoke"
Resource = "arn:aws:execute-api:${var.region}:${var.account_id}:${aws_api_gateway_rest_api.apigw.id}/*"
Effect = "Allow"
Principal = {
AWS = var.ecs_execution_role_arn
}
Action = "execute-api:Invoke"
Resource = "arn:aws:execute-api:${var.region}:${var.account_id}:${aws_api_gateway_rest_api.apigw.id}/*"
}
]
})
Expand Down

0 comments on commit fc1e0da

Please sign in to comment.