Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environments are not visible. #11

Open
urosjarc opened this issue Jun 30, 2017 · 1 comment
Open

Environments are not visible. #11

urosjarc opened this issue Jun 30, 2017 · 1 comment

Comments

@urosjarc
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants