serverless-heaven / serverless-aws-alias

Alias support for Serverless 1.x
MIT License
189 stars 68 forks source link

Is there any way that we can seperate the stage name and alias name. #194

Open SandeepThakare opened 4 years ago

SandeepThakare commented 4 years ago

Problem Statement:

I want my API to point a specific version of lambda when deploying with serverless command. When I deploy with stage name v1 and alias name dev the serverless create a new stage with name dev.

Example: When I run the command sls deploy --stage v1 --alias dev This will create a new stage dev when v1 is already exist

stage

I want like when I deploy with the stage v1 and alias with dev it should not create a new stage with name as an alias name and deploy API gateway stage v1 with lambda alias dev without creating a new stage.

Is there any way to do like this with serverless-aws-alias plugin in serverless. Or is there any way that we can change the SERVERLESS_ALIAS environment variable value as it is read-only.

AshKemp23 commented 1 year ago

Hi @SandeepThakare did you find any solution for this?