Created
February 9, 2020 09:50
-
-
Save keithrozario/dde0c87a8cda7205e49e350f2d42d253 to your computer and use it in GitHub Desktop.
VPCe Policy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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