DieProduktMacher / serverless-env-generator

A Serverless 1.x plugin to manage environment variables with YAML and turn them into a .env file on deployment. Supports encryption with KMS, multiple stages and custom profiles.
MIT License
31 stars 11 forks source link

README: Update serverless.yml example #3

Closed a-leung closed 7 years ago

a-leung commented 7 years ago

The default development stage is dev. Using development returns error:

Missing required key 'KeyId' in params

tlimp commented 7 years ago

Thanks. We missed that, because we always full/long stage names. And by having the following in your serverless.yml our default stage is in deed development:

custom:
  stage: development
provider:
  stage: ${opt:stage, self:custom.stage}
a-leung commented 7 years ago

aaah, good point. I'm new to serverless so my setup is default or pretty basic.

Thanks again for the plugin!