-
-
Save rezen/018c4bf5e98de4c04baacf678df8b80f to your computer and use it in GitHub Desktop.
S3 policy to allow org access to bucket
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
{ | |
"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