Skip to content

Instantly share code, notes, and snippets.

@rdark
Created May 14, 2015 16:03
Show Gist options
  • Save rdark/90cbfc2d539638d66cc9 to your computer and use it in GitHub Desktop.
Save rdark/90cbfc2d539638d66cc9 to your computer and use it in GitHub Desktop.
vpce endpoint s3 bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Get-Access-from-UACT-VPCE-only",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:GetBucketLocation"
],
"Resource": [
"arn:aws:s3:::my-uact-bucket/*",
"arn:aws:s3:::my-uact-bucket"
],
"Condition": {
"StringEquals": {
"aws:sourceVpce": "vpce-deadbeef"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment