Skip to content

Instantly share code, notes, and snippets.

@msfidelis
Created March 13, 2019 01:53
Show Gist options
  • Save msfidelis/be4d4f4d627d15dac78678ad6a4f635f to your computer and use it in GitHub Desktop.
Save msfidelis/be4d4f4d627d15dac78678ad6a4f635f to your computer and use it in GitHub Desktop.
service: serverless-boilerplate
provider:
name: aws
runtime: nodejs8.10
stage: ${opt:stage, 'prod'} # Pegamos o stage via argumento, default é prod
region: us-east-1
//...
environment: # Carregamos um arquivo YML com o nome do stage com as variáveis de ambiente
${file(./configs/${self:provider.stage}.yml)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment