lambda-wrapper icon indicating copy to clipboard operation
lambda-wrapper copied to clipboard

Environments are not visible.

Open urosjarc opened this issue 8 years ago • 1 comments

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.

urosjarc avatar Jun 30 '17 13:06 urosjarc

@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).

mpuittinen avatar Jul 09 '17 15:07 mpuittinen