Created
April 13, 2021 16:00
-
-
Save rdemoraes/b3d110b7f708d3b1d09126bf06f1f31e to your computer and use it in GitHub Desktop.
S3 bucket policy for cassandra
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", | |
"Statement": [ | |
{ | |
"Sid": "DelegateS3Access", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<AWS-Account-ID>:role/SourceCassandraClusterRole" | |
}, | |
"Action": [ | |
"s3:ListBucket", | |
"s3:GetObject", | |
"s3:PutObject", | |
"s3:PutObjectAcl", | |
"s3:DeleteObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::source-cassandra-cluster", | |
"arn:aws:s3:::source-cassandra-cluster/*" | |
] | |
}, | |
{ | |
"Sid": "DelegateS3Access", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<lower-account-id>:role/SourceCassandraClusterRole" | |
}, | |
"Action": [ | |
"s3:ListBucket", | |
"s3:GetObject" | |
], | |
"Resource": [ | |
"arn:aws:s3:::source-cassandra-cluster", | |
"arn:aws:s3:::source-cassandra-cluster/*" ] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment