forked from GorillaStack/auto-tag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy_iam_policy.json
92 lines (92 loc) · 2.66 KB
/
deploy_iam_policy.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
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Ec2AndSts",
"Effect": "Allow",
"Action": [
"ec2:DescribeRegions",
"sts:GetCallerIdentity"
],
"Resource": "*"
},
{
"Sid": "CloudFormationManageStacks",
"Effect": "Allow",
"Action": [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:UpdateStack",
"cloudformation:DescribeStacks"
],
"Resource": "arn:aws:cloudformation:*:*:stack/AutoTag*/*"
},
{
"Sid": "S3ListAllBuckets",
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "S3Bucket",
"Effect": "Allow",
"Action": [
"s3:CreateBucket",
"s3:GetBucketPolicy",
"s3:PutBucketPolicy",
"s3:PutBucketPublicAccessBlock",
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Resource": "arn:aws:s3:::my-autotag-bucket"
},
{
"Sid": "S3ObjectReadWrite",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": "arn:aws:s3:::my-autotag-bucket/*"
},
{
"Sid": "ManagedCloudFormationResources",
"Effect": "Allow",
"Action": [
"events:*",
"lambda:*",
"logs:*",
"sns:*",
"iam:GetRole"
],
"Resource": "*"
},
{
"Sid": "IamRole",
"Effect": "Allow",
"Action": [
"iam:CreateRole",
"iam:DeleteRole",
"iam:UpdateRole",
"iam:GetPolicy",
"iam:GetRolePolicy",
"iam:PutRolePolicy",
"iam:DeleteRolePolicy",
"iam:AttachRolePolicy",
"iam:DetachRolePolicy"
],
"Resource": [
"arn:aws:iam::*:role/gorillastack/autotag/master/AutoTag",
"arn:aws:iam::*:role/gorillastack/autotag/execution/AutoTagLambda"
]
},
{
"Sid": "IamPassRole",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": "arn:aws:iam::*:role/gorillastack/autotag/execution/AutoTagLambda"
}
]
}