Search code examples
amazon-web-servicesvisual-studio-codecommand-line-interfaceenvironmentsam

How to set "environmentVariables": {} in .aws templates.json file in vscode?


I am using VSCode to develop, test AWS Lambda functions. I could not find any help on how to set "environmentVariables": {} in .aws/templates.json file, so that my lambda function picks them up.


Solution

  • aws-toolkit-vscode group provided me the answer on their github issue board. Go to this link on how to set environment variables.

    https://github.com/aws/aws-toolkit-vscode/issues/795