Skip to content

Commit 87fe212

Browse files
committed
Add PassRole permissions to sample policy
1 parent 44f6317 commit 87fe212

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ This action requires the following minimum set of permissions:
4444
],
4545
"Resource":"*"
4646
},
47+
{
48+
"Sid":"PassRolesInTaskDefinition",
49+
"Effect":"Allow",
50+
"Action":[
51+
"iam:PassRole"
52+
],
53+
"Resource":[
54+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_role_name>",
55+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_execution_role_name>"
56+
]
57+
},
4758
{
4859
"Sid":"DeployService",
4960
"Effect":"Allow",
@@ -52,7 +63,7 @@ This action requires the following minimum set of permissions:
5263
"ecs:DescribeServices"
5364
],
5465
"Resource":[
55-
"arn:aws:ecs:region:aws_account_id:service/cluster-name/service-name"
66+
"arn:aws:ecs:region:<aws_account_id>:service/<cluster_name>/<service_name>"
5667
]
5768
}
5869
]

0 commit comments

Comments
 (0)