Skip to content

Commit

Permalink
Respect the upcoming changes in ECS Tagging
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.
  • Loading branch information
thisismana committed Jun 6, 2024
1 parent 8b312b9 commit ffe96e7
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 ffe96e7

Please sign in to comment.