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: 

Allow read access to S3 buckets from one AWS accounts to other AWS accounts.

164079
Contributor II

Dear team, 

We have several AWS accounts with S3 buckets, the databricks setup is on our dev AWS account and we would like to allow instance profile to have read permission on all our S3 buckets on the other AWS accounts ( without using bucket policy which require us to add it on any bucket)

I am trying using the assume role but dosent work, getting access denied.

It is working only if i set S3 bucket permissions on my other/remote AWS account bucket policy.

Please advise

Thansks!

1 ACCEPTED SOLUTION

Accepted Solutions

User16255483290
Contributor

Can you please share the IAM role policy in the secondary account (Bucket account) ?

Just wanted to know have you tried setting the config in the cluster.

spark.hadoop.fs.s3a.bucket.<s3-bucket-name>.aws.credentials.provider org.apache.hadoop.fs.s3a.auth.AssumedRoleCredentialProvider

spark.hadoop.fs.s3a.bucket.<s3-bucket-name>.assumed.role.arn arn:aws:iam::<bucket-owner-account-id>:role/Master_Role

View solution in original post

2 REPLIES 2

User16255483290
Contributor

Can you please share the IAM role policy in the secondary account (Bucket account) ?

Just wanted to know have you tried setting the config in the cluster.

spark.hadoop.fs.s3a.bucket.<s3-bucket-name>.aws.credentials.provider org.apache.hadoop.fs.s3a.auth.AssumedRoleCredentialProvider

spark.hadoop.fs.s3a.bucket.<s3-bucket-name>.assumed.role.arn arn:aws:iam::<bucket-owner-account-id>:role/Master_Role

Thank you @D Raj Kumar​ 

Added it and now its works!

Thanks

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