-
Notifications
You must be signed in to change notification settings - Fork 1
/
pb-level1.json
76 lines (76 loc) · 2.18 KB
/
pb-level1.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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CreateOrChangeOnlyWithBoundary",
"Effect": "Deny",
"Action": [
"iam:CreateUser",
"iam:CreateRole",
"iam:PutRolePermissionsBoundary",
"iam:PutUserPermissionsBoundary"
],
"Resource": "*",
"Condition": {
"StringNotLike": {
"iam:PermissionsBoundary": "arn:aws:iam::*:policy/pb-level2"
}
}
},
{
"Sid": "NoBoundaryPolicyEditOrDelete",
"Effect": "Deny",
"Action": [
"iam:CreatePolicyVersion",
"iam:DeletePolicy",
"iam:DeletePolicyVersion",
"iam:SetDefaultPolicyVersion"
],
"Resource": [
"arn:aws:iam::*:policy/pb-level*"
]
},
{
"Sid": "NoBoundaryUserDelete",
"Effect": "Deny",
"Action": [
"iam:DeleteUserPermissionsBoundary",
"iam:DeleteRolePermissionsBoundary"
],
"Resource": "*"
},
{
"Action": [
"iam:*",
"ec2:*",
"cloudwatch:*",
"s3:*",
"logs:*",
"ec2-instance-connect:*",
"cloudshell:*",
"rds:*",
"dynamodb:*",
"sqs:*",
"sns:*",
"ecs:*",
"xray:*",
"elasticache:*",
"codepipeline:*",
"codebuild:*",
"codedeploy:*",
"codecommit:*",
"amplify:*",
"cognito-identity:*",
"cognito-idp:*",
"cognito-sync:*",
"apigateway:*",
"lambda:*",
"cloudformation:*",
"eks:*",
"ecr:*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}