@@ -853,11 +853,12 @@ CodeArtifact Authentication Issues
853853
854854**Solution **: The officially supported path is Poetry with the ``poetry aws-login `` command.
855855
856- For pip/uv users, you must self-support using AWS documentation:
856+ For pip/uv users, you must self-support using AWS documentation.
857+
858+ **Option 1 (for pip users): **
857859
858860.. code-block :: bash
859861
860- # Example for pip (not officially supported)
861862 aws sso login --profile flexcompute-pypi
862863 aws codeartifact login --tool pip \
863864 --repository pypi-releases \
@@ -866,6 +867,22 @@ For pip/uv users, you must self-support using AWS documentation:
866867 --region us-east-1 \
867868 --profile flexcompute-pypi
868869
870+ **Option 2 (not recommended): **
871+
872+ .. code-block :: bash
873+
874+ CODEARTIFACT_AUTH_TOKEN=` aws codeartifact get-authorization-token \
875+ --domain flexcompute \
876+ --domain-owner 625554095313 \
877+ --query authorizationToken \
878+ --output text \
879+ --profile flexcompute-pypi`
880+
881+ pip config set site.extra-index-url \
882+ https://aws:$CODEARTIFACT_AUTH_TOKEN @flexcompute-625554095313.d.codeartifact.us-east-1.amazonaws.com/pypi/pypi-releases/simple/
883+
884+ Note: Tokens expire after 12 hours, requiring daily re-authentication.
885+
869886Alternatively, use the Docker development environment.
870887
871888**Problem **: ``poetry lock `` or ``poetry update `` hangs
0 commit comments