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
I recently upgraded to the latest version of AWS Toolkit. Now when I use the 'From template' option in the 'Run/Debug Configurations' screen I can't see an option to add environment variables. It does appear if I use 'From handler' instead but then I lose the ability to run a function with layers.
Is there a way to add environment variables with the 'From template' option? This could be done in AWS Toolkit version 1.16-193.
Thanks.
The text was updated successfully, but these errors were encountered:
AMcManigal
added
the
guidance
General information and guidance, answers to FAQs, or recommended best practices/resources.
label
Dec 11, 2020
You can do it in the run config by going to the SAM CLI tab and adding the --env-vars or -n flags and the absolute path to your env.json file in the local invoke args section.
Sorry for the inconvenience, it was removed as we re-did the UI and it was deemed confusing given the current UX and the actual limitations of SAM:
In handler mode, you could add any env vars you wanted, but in template mode, only env vars defined in the template would actually be overridden and that was not explained to the user leading to confusion.
We can look into fixing that UI to reveal that limitation. @rdt712 is correct on the current work around.
abrooksv
added
feature-request
New feature or enhancement. May require GitHub community feedback.
and removed
guidance
General information and guidance, answers to FAQs, or recommended best practices/resources.
labels
Dec 14, 2020
I also think what might be useful is an "import from remote lambda" feature for both template and handler modes - this would allow us to point at a remote Lambda function and automatically import the environment variables from it. Handy when you have environment variables that are populated by refs' in cfn/cdk.
Your Environment
Question
I recently upgraded to the latest version of AWS Toolkit. Now when I use the 'From template' option in the 'Run/Debug Configurations' screen I can't see an option to add environment variables. It does appear if I use 'From handler' instead but then I lose the ability to run a function with layers.
Is there a way to add environment variables with the 'From template' option? This could be done in AWS Toolkit version 1.16-193.
Thanks.
The text was updated successfully, but these errors were encountered: