Skip to content

Commit 810476d

Browse files
committed
updated README.md file with recommended pr changes
1 parent f066fc2 commit 810476d

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

README.md

Lines changed: 10 additions & 12 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-
120119
Running a service requires the following minimum set of permissions:
121-
122120
```json
123121
{
124122
"Version":"2012-10-17",
@@ -164,7 +162,7 @@ Running a one-off/stand-alone task requires the following minimum set of permiss
164162
"Version": "2012-10-17",
165163
"Statement": [
166164
{
167-
"Sid": "RegisterTaskDefinition and runTask",
165+
"Sid": "VisualEditor0",
168166
"Effect": "Allow",
169167
"Action": [
170168
"ecs:RunTask",
@@ -174,15 +172,15 @@ Running a one-off/stand-alone task requires the following minimum set of permiss
174172
"Resource": "*"
175173
},
176174
{
177-
"Sid":"PassRolesInTaskDefinition",
178-
"Effect":"Allow",
179-
"Action":[
180-
"iam:PassRole"
181-
],
182-
"Resource":[
183-
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_role_name>",
184-
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_execution_role_name>"
185-
]
175+
"Sid": "PassRolesInTaskDefinition",
176+
"Effect":"Allow",
177+
"Action": [
178+
"iam:PassRole"
179+
],
180+
"Resource":[
181+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_role_name>",
182+
"arn:aws:iam::<aws_account_id>:role/<task_definition_task_execution_role_name>"
183+
]
186184
}
187185
]
188186
}

0 commit comments

Comments
 (0)