<?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: Databricks and AWS CodeArtifact in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/138468#M4446</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/126988"&gt;@axelboursin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think this article will help you out:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/admin/workspace-settings/default-python-packages" target="_blank"&gt;https://docs.databricks.com/aws/en/admin/workspace-settings/default-python-packages&lt;/A&gt;&amp;nbsp;(option 1 below).&lt;/P&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;Recommended approaches (choose based on your environment):&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;For broad, consistent behavior across clusters and notebooks, configure &lt;STRONG&gt;workspace-level default Python package repositories&lt;/STRONG&gt; to point to CodeArtifact; this avoids per-notebook tokens and works for both serverless and classic compute.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;(The thing you mentioned) For classic clusters only, add a &lt;STRONG&gt;cluster-scoped init script&lt;/STRONG&gt; that runs &lt;CODE class="qt3gz9f"&gt;aws codeartifact login&lt;/CODE&gt; and writes pip config, so pip automatically resolves from your CodeArtifact repo at cluster start.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;For one-off installs or testing, use &lt;STRONG&gt;notebook-scoped %pip&lt;/STRONG&gt; with &lt;CODE class="qt3gz9f"&gt;--index-url&lt;/CODE&gt; (and &lt;CODE class="qt3gz9f"&gt;--extra-index-url&lt;/CODE&gt; as needed) and credentials pulled from &lt;STRONG&gt;Databricks Secrets&lt;/STRONG&gt; inside the notebook.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 10 Nov 2025 20:06:51 GMT</pubDate>
    <dc:creator>stbjelcevic</dc:creator>
    <dc:date>2025-11-10T20:06:51Z</dc:date>
    <item>
      <title>Databricks and AWS CodeArtifact</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/100180#M2402</link>
      <description>&lt;P&gt;Hello, I saw multiple topics about it, but I need explanations and a solution.&lt;/P&gt;&lt;P&gt;In my context, we have developers that are developing Python projects, like X.&lt;BR /&gt;In Databricks, we have a cluster with a library of the main project A that is dependent of X.&lt;/P&gt;&lt;P&gt;pyproject.toml is like :&lt;BR /&gt;[tool.poetry.dependencies]&lt;BR /&gt;X =&amp;nbsp;{ source = "codeartifact", version = "0.1.0" }&lt;BR /&gt;&lt;BR /&gt;[[tool.poetry.source]]&lt;BR /&gt;name = "codeartifact"&lt;BR /&gt;url = "&lt;A href="https://domain-ownerid.d.codeartifact.region-name.amazonaws.com/pypi/repo/simple/" target="_blank"&gt;https://domain-ownerid.d.codeartifact.region-name.amazonaws.com/pypi/repo/simple/&lt;/A&gt;"&lt;BR /&gt;priority = "supplemental"&lt;/P&gt;&lt;P&gt;Cluster is searching on public PyPi repositories.&lt;BR /&gt;&lt;BR /&gt;Thanks for your answers and your help!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 06:04:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/100180#M2402</guid>
      <dc:creator>axelboursin</dc:creator>
      <dc:date>2024-11-27T06:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks and AWS CodeArtifact</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/100181#M2403</link>
      <description>&lt;P&gt;I saw that solution may be in the init script but it's not really essy to work with.&lt;/P&gt;&lt;P&gt;I mean, there's no log generated from the bash script, so this is not an easy way to solve my problem, maybe you have some advices about it?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 06:05:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/100181#M2403</guid>
      <dc:creator>axelboursin</dc:creator>
      <dc:date>2024-11-27T06:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks and AWS CodeArtifact</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/138468#M4446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/126988"&gt;@axelboursin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I think this article will help you out:&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/admin/workspace-settings/default-python-packages" target="_blank"&gt;https://docs.databricks.com/aws/en/admin/workspace-settings/default-python-packages&lt;/A&gt;&amp;nbsp;(option 1 below).&lt;/P&gt;
&lt;H3 class="_7uu25p0 qt3gz9c _7pq7t612 heading3 _7uu25p1"&gt;Recommended approaches (choose based on your environment):&lt;/H3&gt;
&lt;UL class="qt3gz97 qt3gz92"&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;For broad, consistent behavior across clusters and notebooks, configure &lt;STRONG&gt;workspace-level default Python package repositories&lt;/STRONG&gt; to point to CodeArtifact; this avoids per-notebook tokens and works for both serverless and classic compute.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;(The thing you mentioned) For classic clusters only, add a &lt;STRONG&gt;cluster-scoped init script&lt;/STRONG&gt; that runs &lt;CODE class="qt3gz9f"&gt;aws codeartifact login&lt;/CODE&gt; and writes pip config, so pip automatically resolves from your CodeArtifact repo at cluster start.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="qt3gz9a"&gt;
&lt;P class="qt3gz91 paragraph"&gt;For one-off installs or testing, use &lt;STRONG&gt;notebook-scoped %pip&lt;/STRONG&gt; with &lt;CODE class="qt3gz9f"&gt;--index-url&lt;/CODE&gt; (and &lt;CODE class="qt3gz9f"&gt;--extra-index-url&lt;/CODE&gt; as needed) and credentials pulled from &lt;STRONG&gt;Databricks Secrets&lt;/STRONG&gt; inside the notebook.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 10 Nov 2025 20:06:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/138468#M4446</guid>
      <dc:creator>stbjelcevic</dc:creator>
      <dc:date>2025-11-10T20:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks and AWS CodeArtifact</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/148316#M4875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167034"&gt;@stbjelcevic&lt;/a&gt;,&lt;BR /&gt;actually we are still facing a mystery.&lt;BR /&gt;We created an init_script in order to generate a codeartifact token and change pip conf. Here isthe content:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;pip &lt;/SPAN&gt;install awscli&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;export &lt;/SPAN&gt;AWS_CODEARTIFACT_TOKEN=&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN&gt;(aws &lt;/SPAN&gt;codeartifact get-authorization-token \&lt;BR /&gt;     --domain $DOMAIN \&lt;BR /&gt;     --domain-owner $OWNER \&lt;BR /&gt;     --region $REGION \&lt;BR /&gt;     --query authorizationToken \&lt;BR /&gt;     --output text&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;PIP_INDEX_URL=&lt;SPAN&gt;"https://aws:&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{AWS_CODEARTIFACT_TOKEN}&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{DOMAIN}&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{OWNER}&lt;SPAN&gt;.d.codeartifact.&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{REGION}&lt;SPAN&gt;.amazonaws.com/pypi/&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;{REPOSITORY}&lt;SPAN&gt;/simple/"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;pip &lt;/SPAN&gt;config set global.index-url $PIP_INDEX_URL&lt;BR /&gt;&lt;SPAN&gt;pip &lt;/SPAN&gt;config set global.extra-index-url &lt;A href="https://pypi.org/simple/" target="_blank"&gt;https://pypi.org/simple/&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;When we are installing package from notebook (with `!pip install ${name_of_package_in_codeartifact}`) it works.&lt;BR /&gt;When we are working with jobs that is installing wheel directly, it does not work.&amp;nbsp;&lt;BR /&gt;When trying to install codeartifact libraries from cluster ui (libraries tab), it does not work either.&lt;BR /&gt;&lt;BR /&gt;I do not understand, it looks like it uses a different pip, or that initscript action on pip are not effective.&lt;BR /&gt;&lt;BR /&gt;Would you have any idea?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Feb 2026 12:44:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-and-aws-codeartifact/m-p/148316#M4875</guid>
      <dc:creator>theclipse</dc:creator>
      <dc:date>2026-02-13T12:44:55Z</dc:date>
    </item>
  </channel>
</rss>

