Skip to content

Commit 3c6560b

Browse files
author
100daysofdevops
committed
restrict s3 access from specific vpc endpoint iam policy
1 parent d93ef27 commit 3c6560b

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"Id": "VPCe",
3+
"Version": "2012-10-17",
4+
"Statement": [
5+
{
6+
"Sid": "VPCe",
7+
"Action": "s3:*",
8+
"Effect": "Deny",
9+
"Resource": [
10+
"arn:aws:s3:::example-bucket",
11+
"arn:aws:s3:::example-bucket/*"
12+
],
13+
"Condition": {
14+
"StringNotEquals": {
15+
"aws:SourceVpce": [
16+
"vpce-1111111"
17+
]
18+
}
19+
},
20+
"Principal": "*"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)