-
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
Bug: Change Parameter's Default value doesn't reflect #7103
Comments
Hi, thanks for bringing up the issue. For clarity's sake, are you using |
I am using
|
Hey thanks for the response, after investigating it seems to be a bug on our side, we currently use previous values for parameters if they are present in the existing template already, regardless if the value is actually changed or not. Will mark it as a bug so the team can work on a fix. In the meantime as a workaround, when you deploy can you run the |
Thanks, I did write a deployment script to pass in the Thank you |
We've had similar discussions in the past about this scenario. In short, this is behaviour we adopt from CloudFormation. The linked ticket has more detail. I'm going to close this issue in favour of the previous. |
|
Description:
I am using AWS SAM to deploy my entire stack. Everything is codified within the yaml, and I use parameters for setting values of environment variables:
It is being used within the yaml like:
The Default value for this used to be
bar
but I updated it.My deploy command does not use
parameter-overrides
for dev, only for production, so the default value is what should be used.Upon deploying however, the old value (bar) is used. Even when I create new lambdas that have never been made before, the configuration will be the old value, which does not exist at all within my codebase anymore.
If I manually adjust the configuration of that env var in the aws console, it will revert to this old value the next time I deploy.
I would expect the updated Default value to be used if I am not overriding the value, otherwise whatever value I put in there first is used forever unless I override it, and that isn't very intuitive.
Steps to reproduce:
Configure an environment variable that references a param with a default value. Change the default value and make a new lambda, and it will get the old param value.
Observed result:
Expected result:
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: