S3 limited bucket permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 10:37 PM
Hi,
can I run Databricks on limited/restricted S3 bucket folder, no access to bucket root level as it is restricted per project folder in IAM?
i.e s3://mybucket/myproject_abc/
Now I configured all permissions as per documentation
https://docs.databricks.com/aws/en/connect/unity-catalog/cloud-storage/storage-credentials
| "Condition": { "StringLike": { "s3:prefix": "myproject_abc/*" } }, "Effect": "Allow", "Resource": [ "arn:aws:s3:::mybucket/myproject_abc/*", "arn:aws:s3:::mybucket" ], "Sid": "AllowS3ActionsForProjectABC" } |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:58 AM
Hi @arnas
Yes, you can give Databricks access to just the S3 folder s3://mybucket/myproject_abc/ without exposing the whole bucket.
IAM Policy should include:
- Bucket level: Allow s3:ListBucket on arn:aws:s3:::mybucket with a condition for the myproject_abc/ prefix.
- Object level: Allow s3:GetObject, s3:PutObject, and s3:DeleteObject on arn:aws:s3:::mybucket/myproject_abc/*.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 06:56 AM
aws s3 ls
aws s3 cp
here is my policy, anything I am missing ?
{
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 11:33 PM
Thanks, but no thanks, spam resides in JUNK folder