<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unity Catalog: 403 Error When Connecting S3 via IAM Role and Storage Credential in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/unity-catalog-403-error-when-connecting-s3-via-iam-role-and/m-p/120417#M3406</link>
    <description>&lt;P&gt;Have you follow any specific guide for the creation of the same? Are you setting up a Unity Catalog Metastore or the default storage for the workspace?&lt;BR /&gt;&lt;BR /&gt;For the Metastore creation have you follow steps in&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/create-metastore" target="_blank"&gt;https://docs.databricks.com/aws/en/data-governance/unity-catalog/create-metastore&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 May 2025 12:32:03 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2025-05-28T12:32:03Z</dc:date>
    <item>
      <title>Unity Catalog: 403 Error When Connecting S3 via IAM Role and Storage Credential</title>
      <link>https://community.databricks.com/t5/administration-architecture/unity-catalog-403-error-when-connecting-s3-via-iam-role-and/m-p/120410#M3404</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We're currently setting up &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Databricks Unity Catalog&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; on AWS. We created an S3 bucket and assigned an IAM role (&lt;/SPAN&gt;&lt;SPAN&gt;databricks-storage-role&lt;/SPAN&gt;&lt;SPAN&gt;) to give Databricks access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note: Databricks doesn't use the IAM role directly. Instead, it requires a &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Storage Credential&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; explicitly linked to this IAM role.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":exclamation_mark:"&gt;❗&lt;/span&gt;️ Issue&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;While trying to &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;create a Databricks workspace&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; (via the UI), it prompts for Unity Catalog configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, upon attempting to use the already configured Storage Credential, we receive the following error (screenshot is attached to the message):&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;PERMISSION_DENIED: AWS IAM role does not have READ permissions on url s3://databricks-workspace-storage-eu-west-2/unity-catalog/***************.
Cause: 403 Forbidden error from cloud storage provider.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;H3&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; What We've Done&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;1. S3 Bucket Created:&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;databricks-workspace-storage-eu-west-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;2. IAM Role (&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;databricks-storage-role&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::&amp;lt;DATABRICKS_ACCOUNT&amp;gt;:root"
      },
      "Action": "sts:AssumeRole",
      "Condition": {
        "StringEquals": {
          "aws:PrincipalTag/DatabricksAccountId": "&amp;lt;DATABRICKS_ACCOUNT_ID&amp;gt;"
        }
      }
    }
  ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;3. IAM Policy (&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;databricks-storage-policy&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:ListBucket", "s3:GetBucketLocation"],
      "Resource": "arn:aws:s3:::databricks-workspace-storage-eu-west-2"
    },
    {
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:GetObjectVersion", "s3:DeleteObject"],
      "Resource": [
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/*",
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/unity-catalog/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": ["s3:PutObject", "s3:PutObjectAcl"],
      "Resource": [
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/*",
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/unity-catalog/*"
      ],
      "Condition": {
        "StringEquals": {
          "s3:x-amz-acl": "bucket-owner-full-control"
        }
      }
    }
  ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;4. Bucket Policy (&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;databricks-workspace-storage-eu-west-2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "GrantDatabricksRootAccess",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::&amp;lt;DATABRICKS_ACCOUNT&amp;gt;:root"
      },
      "Action": [
        "s3:GetObject", "s3:GetObjectVersion", "s3:PutObject",
        "s3:DeleteObject", "s3:ListBucket", "s3:GetBucketLocation"
      ],
      "Resource": [
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2",
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/*"
      ]
    },
    {
      "Sid": "AllowUnityCatalogAccessFromRole",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::&amp;lt;MY_ACCOUNT&amp;gt;:role/databricks-storage-role"
      },
      "Action": [
        "s3:GetObject", "s3:PutObject", "s3:DeleteObject",
        "s3:ListBucket", "s3:GetBucketLocation"
      ],
      "Resource": [
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2",
        "arn:aws:s3:::databricks-workspace-storage-eu-west-2/*"
      ]
    }
  ]
}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;H3&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":question_mark:"&gt;❓&lt;/span&gt; Questions&lt;/SPAN&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;What is the correct way to allow Databricks access to an S3 bucket via Storage Credential?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;What could I be missing, even if policies seem fully configured?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Should I pre-create the specific &lt;/SPAN&gt;&lt;SPAN&gt;unity-catalog/&amp;lt;ID&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; prefix in the bucket?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Any advice is appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 10:58:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/unity-catalog-403-error-when-connecting-s3-via-iam-role-and/m-p/120410#M3404</guid>
      <dc:creator>n-var</dc:creator>
      <dc:date>2025-05-28T10:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unity Catalog: 403 Error When Connecting S3 via IAM Role and Storage Credential</title>
      <link>https://community.databricks.com/t5/administration-architecture/unity-catalog-403-error-when-connecting-s3-via-iam-role-and/m-p/120417#M3406</link>
      <description>&lt;P&gt;Have you follow any specific guide for the creation of the same? Are you setting up a Unity Catalog Metastore or the default storage for the workspace?&lt;BR /&gt;&lt;BR /&gt;For the Metastore creation have you follow steps in&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/data-governance/unity-catalog/create-metastore" target="_blank"&gt;https://docs.databricks.com/aws/en/data-governance/unity-catalog/create-metastore&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 12:32:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/unity-catalog-403-error-when-connecting-s3-via-iam-role-and/m-p/120417#M3406</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-05-28T12:32:03Z</dc:date>
    </item>
  </channel>
</rss>

