Data Engineering

How to give access to S3 bucket for a single IAM role

Add to block policies and change AWSGlueServiceRole-testglue to something more appropriate.

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “Example permissions”,
“Effect”: “Allow”,
“Principal”: {
“AWS”: “<<You can find this string in IAM=>Roles ROLE ARN>>”
},
“Action”: [
“s3:GetBucketLocation”,
“s3:ListBucket”
],
“Resource”: “arn:aws:s3:::<<Bucket in questions>>”
},
{
“Effect”: “Allow”,
“Principal”: {
“AWS”: “<<You can find this string in IAM=>Roles ROLE ARN>>”
},
“Action”: [
“s3:PutObject”,
“s3:GetObject”,
“s3:DeleteObject”
],
“Resource”: “arn:aws:s3:::<<Bucket in questions>>/*”
}
]
}

Back To Top
Bitnami