Bug: Changing parameters-override when running sam sync
does not force update
#6172
Labels
area/sync
sam sync command
stage/waiting-for-release
Fix has been merged to develop and is waiting for a release
type/bug
Description:
When I run e.g.
sam sync --watch --parameter-overrides "MYVAR=foo1"
the environment variables do not update in my lambda.However if I edit
template.yml
, the variables are updatedSteps to reproduce:
Run
sam sync --watch --parameter-overrides "MYVAR=foo1"
Have the parameter passed to an environment variable.
See the env variable is
foo1
Without touching anything, run:
sam sync --watch --parameter-overrides "MYVAR=foo2"
Run the lambda, see the value is still
foo1
Now touch the file, and either re-run the command or leave it running, re-execute the lambda, and see the value is now properly changed.
Cannot provide debug logs as I hit the github comment length limit.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
The text was updated successfully, but these errors were encountered: