Skip to content

Commit bc5470f

Browse files
Kevin Tartaelveskevtar
authored andcommitted
Update IAM User Policy documentation
Signed-off-by: Kevin Tarta <[email protected]>
1 parent 25662f4 commit bc5470f

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

docs/source/iam.rst

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ CfnClusterUserPolicy
144144
"ec2:DescribePlacementGroups",
145145
"ec2:DescribeImages",
146146
"ec2:DescribeInstances",
147+
"ec2:DescribeInstanceStatus",
147148
"ec2:DescribeSnapshots",
148149
"ec2:DescribeVolumes",
149150
"ec2:DescribeVpcAttribute",
@@ -217,8 +218,8 @@ CfnClusterUserPolicy
217218
{
218219
"Sid": "DynamoDBModify",
219220
"Action": [
220-
"dynamodb:CreateTable",
221-
"dynamodb:DeleteTable"
221+
"dynamodb:CreateTable",
222+
"dynamodb:DeleteTable"
222223
],
223224
"Effect": "Allow",
224225
"Resource": "*"
@@ -253,8 +254,8 @@ CfnClusterUserPolicy
253254
{
254255
"Sid": "SNSDescribe",
255256
"Action": [
256-
"sns:ListTopics",
257-
"sns:GetTopicAttributes"
257+
"sns:ListTopics",
258+
"sns:GetTopicAttributes"
258259
],
259260
"Effect": "Allow",
260261
"Resource": "*"
@@ -273,6 +274,7 @@ CfnClusterUserPolicy
273274
"Sid": "CloudFormationDescribe",
274275
"Action": [
275276
"cloudformation:DescribeStackEvents",
277+
"cloudformation:DescribeStackResource",
276278
"cloudformation:DescribeStackResources",
277279
"cloudformation:DescribeStacks",
278280
"cloudformation:ListStacks"
@@ -304,10 +306,32 @@ CfnClusterUserPolicy
304306
{
305307
"Sid": "IAMModify",
306308
"Action": [
307-
"iam:PassRole"
309+
"iam:PassRole",
310+
"iam:CreateRole",
311+
"iam:DeleteRole"
308312
],
309313
"Effect": "Allow",
310314
"Resource": "arn:aws:iam::<AWS ACCOUNT ID>:role/<CFNCLUSTER EC2 ROLE NAME>"
315+
},
316+
{
317+
"Sid": "IAMCreateInstanceProfile",
318+
"Action": [
319+
"iam:CreateInstanceProfile",
320+
"iam:DeleteInstanceProfile"
321+
],
322+
"Effect": "Allow",
323+
"Resource": "arn:aws:iam::<AWS ACCOUNT ID>:instance-profile/*"
324+
},
325+
{
326+
"Sid": "IAMInstanceProfile",
327+
"Action": [
328+
"iam:AddRoleToInstanceProfile",
329+
"iam:RemoveRoleFromInstanceProfile",
330+
"iam:PutRolePolicy",
331+
"iam:DeleteRolePolicy"
332+
],
333+
"Effect": "Allow",
334+
"Resource": "*"
311335
}
312336
]
313337
}

0 commit comments

Comments
 (0)