Skip to content

Commit 50d9b02

Browse files
committed
allow code deploy ecs task access
1 parent 6876a6e commit 50d9b02

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tf/service/deploy/data.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,17 @@ data "aws_iam_policy_document" "codedeploy_policy" {
4949
"${data.aws_s3_bucket.app_specs.arn}/*"
5050
]
5151
}
52+
53+
statement {
54+
effect = "Allow"
55+
actions = [
56+
"iam:PassRole"
57+
]
58+
resources = ["*"]
59+
condition {
60+
test = "StringLike"
61+
variable = "iam:PassedToService"
62+
values = ["ecs-tasks.amazonaws.com"]
63+
}
64+
}
5265
}

0 commit comments

Comments
 (0)