Aleksey
Aleksey
WWindmill
Created by Aleksey on 12/12/2024 in #help
Having trouble running python scripts that depend on packages from AWS codeartifact.
got it. In our case, we run two commands:
aws sts get-caller-identity && aws codeartifact get-authorization-token <other required flags> --query authorizationToken --output text
aws sts get-caller-identity && aws codeartifact get-authorization-token <other required flags> --query authorizationToken --output text
I can try running just the aws codeartifact command on its own, but if I need the aws sts get-caller-identity command as well, then I'd do that by extending your docker container in another container and adding an executable script that runs multiple commands?
8 replies
WWindmill
Created by Aleksey on 12/12/2024 in #help
Having trouble running python scripts that depend on packages from AWS codeartifact.
Oh wow. So to make sure I understand correctly... I would put this into the "Pip Index Url" and "Pip Extra Index Url" configuration options:
https://aws:${EPHEMERAL_TOKEN}@<vareto repo address>
https://aws:${EPHEMERAL_TOKEN}@<vareto repo address>
and set this as a custom contextual variable (or maybe as a secret?) https://www.windmill.dev/docs/core_concepts/variables_and_secrets#custom-contextual-variables (pseudocode b/c this would be in the windmill UI)
Name => EPHEMERAL_TOKEN
Value => aws sts get-caller-identity && aws codeartifact get-authorization-token <other required flags> --query authorizationToken --output text
Name => EPHEMERAL_TOKEN
Value => aws sts get-caller-identity && aws codeartifact get-authorization-token <other required flags> --query authorizationToken --output text
? Followups: 1) Does windmill try to evaluate all variables as commands, or only one named EPHEMERAL_TOKEN? 2) What shell does windmill use/emulate when it evaluates them? bash? 3) Is a custom contextual variable the right call, or should I use a secret for this? Thanks!
8 replies