Skip to content

unable to read variable using env/strenv in a select #1573

Answered by mikefarah
traghu84 asked this question in Q&A
Discussion options

You must be logged in to vote

strenv will read the variable as a string - looks like you want to evaluate that string as an expression - try eval(strenv(REGION)) see https://mikefarah.gitbook.io/yq/operators/eval#dynamically-update-a-path-from-an-environment-variable for an example

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@traghu84
Comment options

Answer selected by traghu84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants