Skip to content

Instantly share code, notes, and snippets.

@rezen
Created November 18, 2020 04:53
Show Gist options
  • Save rezen/018c4bf5e98de4c04baacf678df8b80f to your computer and use it in GitHub Desktop.
Save rezen/018c4bf5e98de4c04baacf678df8b80f to your computer and use it in GitHub Desktop.
S3 policy to allow org access to bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowOthersInOrg",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": [
"arn:aws:s3:::bucketnamehere/*",
"arn:aws:s3:::bucketnamehere"
],
"Condition": {
"StringEquals": {
"aws:PrincipalOrgID": "o-xxxxxxx"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment