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
Have been looking for help hours on how to set "environmentVariables": {} in .aws templates.json.
Have tried "environmentVariables": {"key":"value"}
"environmentVariables": {"Variablkes":[{"key":"value"}]}
"environmentVariables": [{"key":"value"},]
None works.
Please help.
The text was updated successfully, but these errors were encountered:
Hi @pcharasala the proper configuration is "environmentVariables": {"key":"value"} , however the environment variable must also be defined in your SAM Template file.
Here is an example...
My SAM Template (template.yaml) file has the following resource that contains an environment variable called SAMPLE1:
Thank you! Thank you! That works.
The piece I was missing is the fact that environment variable keys must be there at both template.yaml and templates.json.
I have tested with multiple variables too and I am giving it here could be useful to someone else.
In the temlate.yaml..
Have been looking for help hours on how to set "environmentVariables": {} in .aws templates.json.
Have tried "environmentVariables": {"key":"value"}
"environmentVariables": {"Variablkes":[{"key":"value"}]}
"environmentVariables": [{"key":"value"},]
None works.
Please help.
The text was updated successfully, but these errors were encountered: