Skip to content

Commit fb327df

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/aws-sdk/client-ecs-3.624.0
2 parents 467a25c + f4999fd commit fb327df

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ We recommend following [Amazon IAM best practices](https://docs.aws.amazon.com/I
116116
* [Monitor the activity](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#keep-a-log) of the credentials used in GitHub Actions workflows.
117117

118118
## Permissions
119-
120-
This action requires the following minimum set of permissions:
121-
119+
Running a service requires the following minimum set of permissions:
122120
```json
123121
{
124122
"Version":"2012-10-17",
@@ -156,7 +154,36 @@ This action requires the following minimum set of permissions:
156154
]
157155
}
158156
```
159-
157+
158+
Running a one-off/stand-alone task requires the following minimum set of permissions:
159+
```json
160+
{
161+
"Version": "2012-10-17",
162+
"Statement":[
163+
{
164+
"Sid": "VisualEditor0",
165+
"Effect": "Allow",
166+
"Action":[
167+
"ecs:RunTask",
168+
"ecs:RegisterTaskDefinition",
169+
"ecs:DescribeTasks"
170+
],
171+
"Resource": "*"
172+
},
173+
{
174+
"Sid": "PassRolesInTaskDefinition",
175+
"Effect":"Allow",
176+
"Action":[
177+
"iam:PassRole"
178+
],
179+
"Resource":[
180+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_role_name>",
181+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_execution_role_name>"
182+
]
183+
}
184+
]
185+
}
186+
```
160187
Note: the policy above assumes the account has opted in to the ECS long ARN format.
161188

162189
## AWS CodeDeploy Support

0 commit comments

Comments
 (0)