-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables ignored/don't get set with referenced Parameters default values. #450
Comments
This is a regression. We will get it fixed |
I am having that problem too. |
We would very much like to use something newer than 0.2.0 (we stayed there because of all the .3 breaking changes), but we make heavy use of !Sub and !Ref with parameters in our sam file. I don't see a good reason to trade up to .4 until we don't have to make heavy hardcoding changes to a local yaml file. It would be really nice if we had one sam.yaml to rule them all really. |
Hi do you know how parse this parameter for sam deploy commad? sam deploy --template-file ./serverless-output.yaml --stack-name TextFileGenStack --capabilities CAPABILITY_IAM --TargetEnv dev2 TargetEnv is the Parameter that would take in my target environment from command but I am getting this error: usage: aws [options] [ ...] [parameters] aws help push | register |
@MRODG This is not related to this issue at all. Also in the future, please use other support channels for questions like this, such as our slack channel (#samdev) or stackoverflow. Github is for bugs and feature requests. |
I am waiting for the fix too |
This was addressed in #657 but is waiting for a release. Updating labels to reflect current state. |
Closing. Was released with 0.6.1 |
* Onboarded ruby3.2 * Re-order runtimes in test_cli. * Remove deprecated Python3.6 * Add ruby3.2 to build.yml. * Update build.yml * Update build.yml to run Ruby3.2. * temp: use private lambda builders * temp: use private lambda builders * try * try use GH_TOKEN to access private repo * try use GH_TOKEN to access private repo * try use GH_TOKEN to access private repo * Revert "try use GH_TOKEN to access private repo" This reverts commit eadf4ea650985a4b4fabe5ff82b73eac01dc7c32. * Revert "try use GH_TOKEN to access private repo" This reverts commit a32b86c51ce162ca0680b303dcd889bd65385214. * Revert "try use GH_TOKEN to access private repo" This reverts commit 52ff9084d0c723ce3970ec60ad233343c3fe3157. * Revert "try" This reverts commit 5fc353914e2c126b4a04e2a3b6040356a91787dc. * Revert "temp: use private lambda builders" This reverts commit e39d06f6dc5e0a4ffeee1a2357eafd9b2672d118. --------- Co-authored-by: trivenay <[email protected]> Co-authored-by: Mehmet Nuri Deveci <[email protected]> Co-authored-by: Sean O Brien <[email protected]>
* Onboarded ruby3.2 * Re-order runtimes in test_cli. * Remove deprecated Python3.6 * Add ruby3.2 to build.yml. * Update build.yml * Update build.yml to run Ruby3.2. * temp: use private lambda builders * temp: use private lambda builders * try * try use GH_TOKEN to access private repo * try use GH_TOKEN to access private repo * try use GH_TOKEN to access private repo * Revert "try use GH_TOKEN to access private repo" This reverts commit eadf4ea650985a4b4fabe5ff82b73eac01dc7c32. * Revert "try use GH_TOKEN to access private repo" This reverts commit a32b86c51ce162ca0680b303dcd889bd65385214. * Revert "try use GH_TOKEN to access private repo" This reverts commit 52ff9084d0c723ce3970ec60ad233343c3fe3157. * Revert "try" This reverts commit 5fc353914e2c126b4a04e2a3b6040356a91787dc. * Revert "temp: use private lambda builders" This reverts commit e39d06f6dc5e0a4ffeee1a2357eafd9b2672d118. --------- Co-authored-by: Mohamed Elasmar <[email protected]> Co-authored-by: trivenay <[email protected]> Co-authored-by: Sean O Brien <[email protected]>
When sam local 3.0 runs my template that has !Ref as values to Parameters for ENV variables, the default value is not used if the ENV variable is not set by the shell. I believe this worked previously because all my templates are setup this way and I was using sam local before the 3.0 update. Although I cannot confirm at this time.
Result on sam local start-api & request:
I would expect the !Ref to resolve to the Parameter default value, and then later be overridden by the ENV variable. As if sam local deployed the template the same way Cloudformation builds the lambda/stack
The text was updated successfully, but these errors were encountered: