Repository navigation
Using AWS CodeArtifact for packages #5873
Answered
by
rubenfiszel
danielmklein
asked this question in
Questions
|
Hi there! We have recently upgraded to Enterprise, but it's not clear how to set up access to CodeArtifact and ensure we keep the relevant token refreshed. Where are the docs etc on that? |
Answered by
rubenfiszel
Jun 5, 2025
Replies: 2 comments 3 replies
|
Hi, there is a specific env variable EPHEMERAL_TOKEN_CMD which is meant to have the specific aws command to generate a short token for the code artifact (the aws cli need to be used with --output arg to output just the token), and then you need to set PIP_INDEX_URL='xxxEPHEMERAL_TOKEN' and EPHEMERAL_TOKEN will be replaced by the output of the command. We're asking another customer how they are currently using it See other answer for format of the commands |
0 replies
Answer selected by
danielmklein
|
Here are the env variables It assumes the ec2 nodes have the proper roles to get the token |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, there is a specific env variable EPHEMERAL_TOKEN_CMD which is meant to have the specific aws command to generate a short token for the code artifact (the aws cli need to be used with --output arg to output just the token), and then you need to set PIP_INDEX_URL='xxxEPHEMERAL_TOKEN' and EPHEMERAL_TOKEN will be replaced by the output of the command.
We're asking another customer how they are currently using it
See other answer for format of the commands