diff --git a/README.md b/README.md index 246eef880..d6646af3f 100644 --- a/README.md +++ b/README.md @@ -116,9 +116,7 @@ We recommend following [Amazon IAM best practices](https://docs.aws.amazon.com/I * [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. ## Permissions - -This action requires the following minimum set of permissions: - +Running a service requires the following minimum set of permissions: ```json { "Version":"2012-10-17", @@ -156,7 +154,36 @@ This action requires the following minimum set of permissions: ] } ``` - + +Running a one-off/stand-alone task requires the following minimum set of permissions: +```json +{ + "Version": "2012-10-17", + "Statement":[ + { + "Sid": "VisualEditor0", + "Effect": "Allow", + "Action":[ + "ecs:RunTask", + "ecs:RegisterTaskDefinition", + "ecs:DescribeTasks" + ], + "Resource": "*" + }, + { + "Sid": "PassRolesInTaskDefinition", + "Effect":"Allow", + "Action":[ + "iam:PassRole" + ], + "Resource":[ + "arn:aws:iam:::role/", + "arn:aws:iam:::role/" + ] + } + ] +} +``` Note: the policy above assumes the account has opted in to the ECS long ARN format. ## AWS CodeDeploy Support