forked from mesosphere/dcos-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3bucketpolicy
38 lines (38 loc) · 964 Bytes
/
s3bucketpolicy
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
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "PublicAccess",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::$BUCKET/*"
},
{
"Sid": "bucket-owner-full-control-force",
"Effect": "Allow",
"Principal": { "AWS": ["$PRINCIPAL"] },
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::$BUCKET/*",
"Condition": {
"StringEquals": {
"s3:x-amz-acl": "bucket-owner-full-control"
}
}
},
{
"Sid": "AllowPolicyGetAndSet",
"Effect": "Allow",
"Principal": { "AWS": ["$PRINCIPAL"] },
"Action": ["s3:GetBucketPolicy", "s3:PutBucketPolicy"],
"Resource": "arn:aws:s3:::$BUCKET"
},
{
"Sid": "PublicWebsite",
"Effect": "Allow",
"Principal": { "AWS": ["$PRINCIPAL"] },
"Action": ["s3:PutBucketWebsite"],
"Resource": "arn:aws:s3:::$BUCKET"
}
]
}