Created
August 26, 2020 06:26
-
-
Save jc1518/aef53f6e84a2743d157a2476fd7a47b0 to your computer and use it in GitHub Desktop.
s3_endpoint_policy_sample
This file contains 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", | |
"Statement": [ | |
{ | |
"Sid": "MyTestDataBucketReadAccess", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": [ | |
"s3:GetObject", | |
"s3:ListBucket" | |
], | |
"Resource": [ | |
"arn:aws:s3:::my-test-data", | |
"arn:aws:s3:::my-test-data/*" | |
], | |
"Condition": { | |
"StringLike": { | |
"aws:PrincipalArn": "arn:aws:iam::123456789:role/my-test-instance-role" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment