Using AWS CodeArtifact for packages #5873
-
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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
Here are the env variables
It assumes the ec2 nodes have the proper roles to get the token |
Beta Was this translation helpful? Give feedback.
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