Skip to content

Instantly share code, notes, and snippets.

@rdemoraes
Created April 13, 2021 16:00
Show Gist options
  • Save rdemoraes/b3d110b7f708d3b1d09126bf06f1f31e to your computer and use it in GitHub Desktop.
Save rdemoraes/b3d110b7f708d3b1d09126bf06f1f31e to your computer and use it in GitHub Desktop.
S3 bucket policy for cassandra
{
"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