Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save 100daysofdevops/92e160cb480a52a7088334e8aa712c46 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/92e160cb480a52a7088334e8aa712c46 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Id": "Policy1415115909153",
"Statement": [
{
"Sid": "Access-to-specific-VPC-only",
"Principal": "*",
"Action": "s3:*",
"Effect": "Deny",
"Resource": ["arn:aws:s3:::examplebucket",
"arn:aws:s3:::examplebucket/*"],
"Condition": {
"StringNotEquals": {
"aws:sourceVpc": "vpc-111bbb22"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment