Skip to content

Commit

Permalink
fix: Allow to send task definition with tags (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart authored Dec 17, 2024
1 parent 779ae5e commit a92a78e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,16 @@ data "aws_iam_policy_document" "update_service" {

resources = [aws_ecs_service.this.id]
}

statement {
actions = [
"ecs:TagResource",
]

resources = [
"arn:aws:ecs:eu-central-1:${data.aws_caller_identity.this.account_id}:task-definition/${random_id.prefix.hex}:*"
]
}
}

# policy for registering new task (IAM needs to pass role to task/execution role)
Expand Down

0 comments on commit a92a78e

Please sign in to comment.