Skip to content

Instantly share code, notes, and snippets.

@jc1518
Created August 26, 2020 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc1518/aef53f6e84a2743d157a2476fd7a47b0 to your computer and use it in GitHub Desktop.
Save jc1518/aef53f6e84a2743d157a2476fd7a47b0 to your computer and use it in GitHub Desktop.
s3_endpoint_policy_sample
{
"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