forked from planetarium/NineChronicles.IAP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiam_role_example.json
79 lines (79 loc) · 2.74 KB
/
iam_role_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"cloudformation:DescribeStackEvents",
"cloudformation:GetTemplate",
"cloudformation:DeleteStack",
"cloudformation:CreateChangeSet",
"cloudformation:DescribeChangeSet",
"cloudformation:ExecuteChangeSet",
"cloudformation:DeleteChangeSet",
"cloudformation:DescribeStacks"
],
"Resource": [
"arn:aws:cloudformation:[TARGET_REGION_NAME]:[ACCOUNT_ID]:stack/CDKToolkit/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": [
"ssm:PutParameter",
"iam:GetRole",
"ssm:DeleteParameter",
"iam:DetachRolePolicy",
"iam:DeleteRolePolicy",
"iam:CreateRole",
"iam:DeleteRole",
"ecr:TagResource",
"iam:AttachRolePolicy",
"iam:PutRolePolicy",
"ssm:GetParameters",
"ssm:GetParameter"
],
"Resource": [
"arn:aws:iam::[ACCOUNT_ID]:role/cdk-*-role-[ACCOUNT_ID]-[TARGET_REGION_NAME]",
"arn:aws:ssm:[TARGET_REGION_NAME]:[ACCOUNT_ID]:parameter/cdk-bootstrap/*/version",
"arn:aws:ecr:*:[ACCOUNT_ID]:repository/*"
]
},
{
"Sid": "VisualEditor2",
"Effect": "Allow",
"Action": [
"cloudformation:ListStacks",
"ecr:CreateRepository"
],
"Resource": "*"
},
{
"Sid": "VisualEditor3",
"Effect": "Allow",
"Action": [
"ecr:PutLifecyclePolicy",
"s3:PutBucketPublicAccessBlock",
"s3:CreateBucket",
"s3:DeleteBucketPolicy",
"ecr:DeleteRepository",
"s3:PutEncryptionConfiguration",
"s3:GetEncryptionConfiguration",
"sts:AssumeRole",
"s3:PutLifecycleConfiguration",
"ecr:SetRepositoryPolicy",
"s3:PutBucketPolicy",
"ecr:DescribeRepositories",
"s3:PutBucketVersioning",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:iam::[ACCOUNT_ID]:role/cdk-*-role-[ACCOUNT_ID]-[TARGET_REGION_NAME]",
"arn:aws:s3:::cdk-*-assets-[ACCOUNT_ID]-[TARGET_REGION_NAME]",
"arn:aws:ecr:*:[ACCOUNT_ID]:repository/*"
]
}
]
}