Skip to content

Instantly share code, notes, and snippets.

@GhaziTriki
Created January 30, 2024 21:23
Show Gist options
  • Save GhaziTriki/8f6fe659d8fa487ed79ae8c10898cd1c to your computer and use it in GitHub Desktop.
Save GhaziTriki/8f6fe659d8fa487ed79ae8c10898cd1c to your computer and use it in GitHub Desktop.
Expected Bucket Policy
{
"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