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

Stage Variables #2665

Closed
big-kahuna-burger opened this issue Nov 8, 2016 · 1 comment
Closed

Stage Variables #2665

big-kahuna-burger opened this issue Nov 8, 2016 · 1 comment

Comments

@big-kahuna-burger
Copy link

Description

  • We are looking into migrating to serverless and everything is going smooth so far except the part with "stages" on APIG

Our use case:
We are managing secrets trough a Stage/Stage Variables on APIG that get transformed in each request by default body request pass trough template on APIG. Is there an option to do this with serverless (manage APIG Stage Variables (keys/values)) ?

I've looked into docs about variables but found nothing about it.
Also, some kind of temp solution with .env file would also work, in a sense that we can just load the environment variables into lambda function but that's breaking the separation of concerns that we are going for. (single place to handle them all)

Thanks

@flomotlik
Copy link
Contributor

You can get Stage variables working through custom resources at the moment by overwriting things. We will definitely support Environment variable handling as soon as its available and I just created a proposal for a possible design in #2673 to discuss and implement as soon as its available. For now the best thing to do is use something like dotenv to get this up and running: https://serverless.com/framework/docs/providers/aws/guide/functions#environment-variables

Closing here as its a duplicate of #2673 as soon as thats in.

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