Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 100daysofdevops/68272ce1008009beed33e97dcaadf920 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/68272ce1008009beed33e97dcaadf920 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Id": "Policy1415115909152",
"Statement": [
{
"Sid": "Access-to-specific-VPCE-only",
"Principal": "*",
"Action": "s3:*",
"Effect": "Deny",
"Resource": ["arn:aws:s3:::examplebucket",
"arn:aws:s3:::examplebucket/*"],
"Condition": {
"StringNotEquals": {
"aws:sourceVpce": "vpce-1a2b3c4d"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment