cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Autoloader File Notifications mode S3 Access Denied error

deng_dev
New Contributor III

Hi everyone!
We are reading json files from cross-account S3 bucket using Autoloader and decided to switch from directory listing mode to files notification mode.
We have set up all permissions mentioned here in our IAM role. But now the pipeline is failing with error:

com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 9BFMJKWPPC2Z5QCS; S3 Extended Request ID: aFXXeekrRMcfxfxDWrZ1FT821bWM4H8f+/a/p7hjgNDhZvAWo7+0iHLhnL11Zvy1Laa0dgPYLTI=; Proxy: null), S3 Extended Request ID: aFXXeekrRMcfxfxDWrZ1FT821bWM4H8f+/a/p7hjgNDhZvAWo7+0iHLhnL11Zvy1Laa0dgPYLTI=

Is it not possible to use file notifications mode when reading data from cross-account S3 bucket? Or could we missed something in setting up the permissions?

Thank you!

1 REPLY 1

drewipson
New Contributor III

You need to be sure you have an instance profile configured with PassRole permissions so that it can assume the cross account role to access the bucket and file notification resources. I found this technical blog helpful: https://community.databricks.com/t5/technical-blog/how-to-use-databricks-autoloader-across-aws-accou...

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group