Skip to content

Commit

Permalink
Respect the upcoming changes in ECS Tagging (#145)
Browse files Browse the repository at this point in the history
Starting August 2024 you'll need the explicit `ecs:TagResource` permission in conjunction with certain ECS related API calls, on of them being `RegisterTaskDefinition`

the [documentation](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonelasticcontainerservice.html#amazonelasticcontainerservice-task-definition) states that we could allow to restrict this to a certain task-definition ARN/pattern, but we do not have access to this, I fear.

Co-authored-by: Moritz Zimmer <[email protected]>
  • Loading branch information
thisismana and moritzzimmer committed Jul 23, 2024
1 parent f7ce1c6 commit 9e1a357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/deployment/iam_code_pipeline.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ data "aws_iam_policy_document" "code_pipepline_permissions" {
actions = [
# cloudtrail reports that codepipeline actually requires access to `*`
"ecs:DescribeTaskDefinition",
"ecs:RegisterTaskDefinition"
"ecs:RegisterTaskDefinition",
"ecs:TagResource"
]
resources = ["*"]
}
Expand Down

0 comments on commit 9e1a357

Please sign in to comment.