Created
March 13, 2019 01:53
-
-
Save msfidelis/be4d4f4d627d15dac78678ad6a4f635f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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