Search code examples
amazon-web-servicesamazon-s3aws-lambdaaws-glue

Unable to save AWS glue job getting headBucket: Forbidden: null erorr


I have created an AWS glue job in the north California region but when I am trying to update the code I get an error:

Failed to update job [s3.us-west-1.amazonaws.com] headBucket: Forbidden: null

Can someone please help me with the solution to this error?

error message image

I tried a lot of ways by giving the multiple permissions of glue access but nothing has worked so far.

below I am attaching the list of policies that I am using for my glue job

LIst of policies that I am using


Solution

  • For the solution please follow the below steps:

    1. Go to the S3 bucket.
    2. On the left-hand navigation pan will get an option called "Access Points" Click on that.
    3. then select the region in which we need to save the job of AWS glue. eg. For the above question, we need to select "US West (N. California) us-west-1"

    Note: Make sure you will have all the appropriate policies attached to your role for the Glue access.