Two issues are demonstrated in this reproduction:
- Lambda environment variable
Ref:
s are not resolved to resource names --env-vars
does not work forsam local start-api
- Clone this repository
npm i
- Run
./sam.sh
- Open http://localhost:3000/ in your browser
- TABLE_NAME is the template resource name rather than "my-table-name"
- TEST_VAR_JSON is not in the environment variables