Skip to content

Instantly share code, notes, and snippets.

@rezen

rezen/policy.json Secret

Created Nov 18, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.