You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Environment variables in the Run/Debug configuration are overwritten with the SAM template variables upon saving and closing the window for configurations loaded from the template. However the values are actually saved in the run config. They just aren't loaded correctly.
To reproduce
Set up a run configuration for locally running a Lambda and load the configuration from a SAM template. Ensure that the function has an environment variable defined in the template.
Overwrite an environment variable value that was loaded from the template with a new value.
Click OK to save the configuration and close the window.
Go back into the run configuration screen. The old value from the template will have replaced itself.
Expected behavior
I expected the IDE to save the override values I entered so that template environment values could be overridden. However, since it does not I have no choice but to hardcode the variables directly into the template.
Screenshots
The function defined in the template.
The generated run configuration.
The variable is set to 120
After clicking OK and returning to the run config the original value has been restored.
Code
However when the code runs it uses the saved value.
AMcManigal
changed the title
Environment Vars from Template Can't Be Overridden in Run Config
Environment Vars from Template Incorrectly Display In Run Config
Mar 18, 2021
Describe the bug
Environment variables in the Run/Debug configuration are overwritten with the SAM template variables upon saving and closing the window for configurations loaded from the template. However the values are actually saved in the run config. They just aren't loaded correctly.
To reproduce
Expected behavior
I expected the IDE to save the override values I entered so that template environment values could be overridden. However, since it does not I have no choice but to hardcode the variables directly into the template.
Screenshots
Your Environment
The text was updated successfully, but these errors were encountered: