Serverless Development Workflow

Guilherme Waess
Jul 1 · 5 min read

Project structure
DB: ${env:DB_${self:custom.stage}, file(local-secrets.yml):db}env:DB_${self:custom.stage} <- this code goes to environment and try to get any value from DB_DEV/PROD, if there is no value, means that is local environment and it goes to:file(local-secrets.yml):db <- this code will go to the secrets file and grab the value from db variable.
local-secrets.ymldb: "this is my db secrets"
firebase: "this is my firebase secrets"

Circle Ci Environment Variables

Develop branch building
Prod and Dev applications
Dev Deployed
Prod Deployed

Guilherme Waess

Written by

Javascript Engineer, clean code lover and unit tests advocate :)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade