-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
601daf7
commit e66b80f
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Restricting access to specific prefixes in a S3 bucket | ||
|
||
> Users will still have access to the full list of S3 objects, | ||
packages and logical keys inside of packages. | ||
|
||
You can isolate user access to objects stored in specific S3 directories by | ||
defining an array of accessible prefixes in a custom IAM role or Amazon S3 | ||
bucket policy. | ||
|
||
Create "custom" role or policy with these permissions: | ||
|
||
```json | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"s3:GetObject", | ||
"s3:GetObjectTagging", | ||
"s3:GetObjectVersion", | ||
"s3:GetObjectVersionTagging", | ||
"s3:ListBucket", | ||
"s3:ListBucketVersions", | ||
"s3:DeleteObject", | ||
"s3:DeleteObjectVersion", | ||
"s3:PutObject", | ||
"s3:PutObjectTagging" | ||
], | ||
"Resource": [ | ||
"arn:aws:s3:::<BUCKET>", | ||
"arn:aws:s3:::<BUCKET>/.quilt/*", | ||
"arn:aws:s3:::<BUCKET>/<PREFIX>/*" | ||
] | ||
} | ||
] | ||
} | ||
``` |