Skip to content

Commit

Permalink
add ':*' for task definition (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jlkan authored Apr 23, 2024
1 parent 0e92d58 commit 5169891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ data "aws_iam_policy_document" "run_task" {
actions = ["ecs:RunTask"]

resources = [
"arn:aws:ecs:${data.aws_region.this.id}:${data.aws_caller_identity.this.id}:task-definition/${random_id.prefix.hex}-${each.key}"
"arn:aws:ecs:${data.aws_region.this.id}:${data.aws_caller_identity.this.id}:task-definition/${random_id.prefix.hex}-${each.key}:*"
]
}
}

0 comments on commit 5169891

Please sign in to comment.