Skip to content

Cannot resolve variable at "provider.stage": Value not found at "env" source #10858

Answered by pgrzesik
alakdam07 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @alakdam07 - I'm moving it to discussions as it's not a bug report. You migrated two major versions and in the meantime, there was a change in how the variable resolver works. In your case, stage is not available as an environment variable so resolution of it fails. Either make sure it's defined or provide a default value e.g. ${env:stage, 'dev'}. In general, I would not recommend reading stage from env vars as the env files are recognized per stage.

Replies: 8 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alakdam07
Comment options

You must be logged in to vote
2 replies
@alakdam07
Comment options

@pgrzesik
Comment options

Comment options

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

Comment options

You must be logged in to vote
3 replies
@pgrzesik
Comment options

@rahmann008
Comment options

@pgrzesik
Comment options

Comment options

You must be logged in to vote
3 replies
@pgrzesik
Comment options

@rahmann008
Comment options

@pgrzesik
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #10857 on March 16, 2022 08:53.