Search code examples
serverless-framework

How to setup alias using serverless framework


I have a project I'm working on with another developer using the serverless framework in aws. I need us both be able to deploy the stack without each other stepping on the others changes. I've been looking for an alias feature where I can provide some prefix or something that will make the deployment unique, but so far I've been unsuccessful. Is there such a feature in serverless to do this? If not how do teams deploy multiple version of the same code without stepping on each other?


Solution

  • You can use Serverless Stages. Set your stage to your name and your teammate can set the stage to his name.

    Production and Dev can also be separate stages.

    https://serverless-stack.com/chapters/stages-in-serverless-framework.html