Environments are not visible.
urosjarc opened this issue · 1 comments
urosjarc commented
functions:
getTrigger:
handler: src/endpoints/triggers/getTrigger/index.handler
environment:
TABLE_NAME: some-table <-------- Should be visible process.env.TABLE_NAME
events:
- http:
path: v1/triggers/{id}
method: get
cors: true
When I run wraper TABLE_NAME is not visible from process.env.TABLE_NAME.
mpuittinen commented
@urosjarc Please define the use case.
Lambda-wrapper is not related anyhow to the serverless framework and does not implement any logic for evaluating variables defined in the serverless.yml config file. For tests, please check serverless-mocha-plugin (which uses lambda-wrapper).