hey folks! quick question, does anyone know how i ...
# help
p
hey folks! quick question, does anyone know how i can support configurations for arbitrary stage names in
serverless.yml
? for example, if i want to deploy to a stage like
dev-pranav
, is there a way for me to structure this such that i fallback to my
dev
stage config? thanks!
nvm, seems like all i have to do here is provide a default value when referencing variables! https://www.serverless.com/framework/docs/providers/aws/guide/variables/
f
Hey @Pranav Badami, something like this
Copy code
custom:
  memoryConfig:
    prod: 2048
    dev: 512
  memory: ${self:custom.memoryConfig.${opt:stage}, self:custom.memoryConfig.dev}