-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathartifactsBucketAccessPolicy.json
58 lines (58 loc) · 1.69 KB
/
artifactsBucketAccessPolicy.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
{
"Version": "2012-10-17",
"Id": "SecureDeploymentPolicy",
"Statement": [
{
"Sid": "DenyUnEncryptedObjectUploads",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::codepipeline-eu-west-1-679235167016/*",
"Condition": {
"StringNotEquals": {
"s3:x-amz-server-side-encryption": "aws:kms"
}
}
},
{
"Sid": "DenyInsecureConnections",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::codepipeline-eu-west-1-679235167016/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
},
{
"Sid": "StageAndLiveDeploymentObjectAccess",
"Action": [
"s3:Get*"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::codepipeline-eu-west-1-679235167016/*",
"Principal": {
"AWS": [
"arn:aws:iam::094345010951:root",
"arn:aws:iam::189470795347:root"
]
}
},
{
"Sid": "StageAndLiveDeploymentAccess",
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::codepipeline-eu-west-1-679235167016",
"Principal": {
"AWS": [
"arn:aws:iam::094345010951:root",
"arn:aws:iam::189470795347:root"
]
}
}
]
}