Skip to content

Commit

Permalink
fix: add ecs-tasks to fargate role
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Bob Massard <[email protected]>
  • Loading branch information
tbobm committed Apr 7, 2021
1 parent 88daceb commit 63a5292
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ resource "aws_iam_role" "fargate" {
Effect = "Allow"
Sid = ""
Principal = {
Service = "ecs.amazonaws.com"
Service = [
"ecs.amazonaws.com",
"ecs-tasks.amazonaws.com"
]
}
},
]
Expand All @@ -32,7 +35,10 @@ resource "aws_iam_user_policy" "publisher" {
"Statement": [
{
"Action": [
"iam:PassRole",
"iam:GetRole",
"ecs:DescribeTaskDefinition",
"ecs:DescribeServices",
"ecs:UpdateService",
"ecs:RegisterTaskDefinition",
"ecr:CompleteLayerUpload",
Expand Down

0 comments on commit 63a5292

Please sign in to comment.