Created
January 30, 2024 21:23
-
-
Save GhaziTriki/8f6fe659d8fa487ed79ae8c10898cd1c to your computer and use it in GitHub Desktop.
Expected Bucket Policy
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"*" | |
] | |
}, | |
"Action": [ | |
"s3:GetBucketLocation" | |
], | |
"Resource": [ | |
"arn:aws:s3:::project-recordings" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"*" | |
] | |
}, | |
"Action": [ | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::project-recordings" | |
], | |
"Condition": { | |
"StringEquals": { | |
"s3:prefix": [ | |
"published/" | |
] | |
} | |
} | |
}, | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": [ | |
"*" | |
] | |
}, | |
"Action": [ | |
"s3:GetObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::project-recordings/published/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment