Skip to content

Instantly share code, notes, and snippets.

@keithrozario
Created February 9, 2020 09:50
Show Gist options
  • Save keithrozario/dde0c87a8cda7205e49e350f2d42d253 to your computer and use it in GitHub Desktop.
Save keithrozario/dde0c87a8cda7205e49e350f2d42d253 to your computer and use it in GitHub Desktop.
VPCe Policy
{
"Version": "2012-10-17",
"Id": "VPCe and SourceIP",
"Statement": [{
"Sid": "VPCe and SourceIP",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"${aws_s3_bucket.test_endpoint.arn}/*"
],
"Condition": {
"StringNotLike": {
"aws:sourceVpce": "${aws_vpc_endpoint.s3.id}"
}
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment