Permission denied running job in AWS Glue

0

Hello,

I am trying to run my first job in AWS Glue, but I am encountering the following error: "An error occurred while calling o103.pyWriteDynamicFrame. /run-1679066163418-part-r-00000 (Permission denied)".

The error message indicates that the permission has been denied. I am using an IAM Role that has AmazonS3FullAccess, AWSGlueServiceRole, and even AdministratorAccess. Although I understand that this is not ideal for security reasons, I added this policy to ensure that the IAM Role is not the issue.

I have attempted to use different sources (such as DynamoDB and S3) and targets (such as Redshift and Datacatalog), but I consistently receive the same error. Does anyone know how I can resolve this issue?

Thank you in advance!

  • Could you please elaborate more on your use-case ? what is this glue ETL job trying to do ?

  • Is it possible you are trying to write into a bucket in a different account or with a policy that restricts you?

  • Also, please check if there's a bucket policy on s3 bucket that's blocking access for Glue job.

asked a year ago1033 views
1 Answer
0
Accepted Answer

Hi There

Please check the S3 bucket policy. Even if your IAM role has S3FullAccess, the bucket policy could be preventing the object writes.

Also see Why does my AWS Glue job return the 403 Access Denied error? for more troubleshooting steps.

profile pictureAWS
EXPERT
Matt-B
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions