<?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: How to grant custom container AWS credentials for reading init script? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/106856#M9644</link>
    <description>&lt;P&gt;Hey! It would be great if you could share more details about the cluster type and access mode.&lt;/P&gt;&lt;P&gt;If you are using, for example, an all-purpose cluster with shared access mode, I recommend configuring the "Init Script" option inside the advanced cluster settings.&lt;/P&gt;&lt;P&gt;If Unity Catalog is enabled, ensure that your S3 path (`s3://&amp;lt;our_bucket&amp;gt;/&amp;lt;our_init_script.sh&amp;gt;`) is allowed under Catalog Explorer &amp;gt; Allowed Jars/init Scripts.&lt;BR /&gt;&lt;BR /&gt;It would also be helpful to understand why you want to use the init script, as there might be other options available.&lt;/P&gt;&lt;P class=""&gt;I hope you find this helpful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 22:51:30 GMT</pubDate>
    <dc:creator>Isi</dc:creator>
    <dc:date>2025-01-23T22:51:30Z</dc:date>
    <item>
      <title>How to grant custom container AWS credentials for reading init script?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/106849#M9643</link>
      <description>&lt;P&gt;I'm using a customer container *and* init scripts. At runtime, I get this error:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Cluster '...' was terminated. Reason: INIT_SCRIPT_FAILURE (CLIENT_ERROR). Parameters: instance_id:i-0440ddd3a2d5cce79, databricks_error_message:Cluster scoped init script s3://&amp;lt;our_bucket&amp;gt;/&amp;lt;our_init_script.sh&amp;gt; failed: Timed out with exception after 5 attempts (debugStr = 'Reading remote file for init script'), Caused by: com.databricks.objectstore.location.PermanentStorageException$AwsForbidden: Missing credentials to access AWS bucket.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It worked previously *without* the container, so I'm pretty sure the use of container is triggering the problem. I suspect that the fetch-init-scripts-from-s3 operation is occurring *inside* the container, and that the container itself lacks AWS credentials. What's the preferred way to pass in AWS credentials to a custom container?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 19:25:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/106849#M9643</guid>
      <dc:creator>mrstevegross</dc:creator>
      <dc:date>2025-01-23T19:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant custom container AWS credentials for reading init script?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/106856#M9644</link>
      <description>&lt;P&gt;Hey! It would be great if you could share more details about the cluster type and access mode.&lt;/P&gt;&lt;P&gt;If you are using, for example, an all-purpose cluster with shared access mode, I recommend configuring the "Init Script" option inside the advanced cluster settings.&lt;/P&gt;&lt;P&gt;If Unity Catalog is enabled, ensure that your S3 path (`s3://&amp;lt;our_bucket&amp;gt;/&amp;lt;our_init_script.sh&amp;gt;`) is allowed under Catalog Explorer &amp;gt; Allowed Jars/init Scripts.&lt;BR /&gt;&lt;BR /&gt;It would also be helpful to understand why you want to use the init script, as there might be other options available.&lt;/P&gt;&lt;P class=""&gt;I hope you find this helpful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 22:51:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/106856#M9644</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-01-23T22:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant custom container AWS credentials for reading init script?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/107263#M9645</link>
      <description>&lt;P&gt;&amp;gt;&lt;SPAN&gt;If you are using, for example, an all-purpose cluster with shared access mode, I recommend configuring the "Init Script" option inside the advanced cluster settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yep, that's the approach. I've got init scripts specified in the cluster settings, and am encountering the "Missing credentials to access AWS bucket" when my job runs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;It would also be helpful to understand why you want to use the init script, as there might be other options available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need to a variety of variables that are only known when the job starts, as well as start up some processes on the container (mostly for telemetry/logging retention).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 16:01:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/107263#M9645</guid>
      <dc:creator>mrstevegross</dc:creator>
      <dc:date>2025-01-27T16:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to grant custom container AWS credentials for reading init script?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/107280#M9646</link>
      <description>&lt;P&gt;Followup: I got the AWS creds working by amending our AWS role to permit read/write access to our S3 bucket. Woohoo!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 18:29:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-grant-custom-container-aws-credentials-for-reading-init/m-p/107280#M9646</guid>
      <dc:creator>mrstevegross</dc:creator>
      <dc:date>2025-01-27T18:29:04Z</dc:date>
    </item>
  </channel>
</rss>

