serverless-aws-alias icon indicating copy to clipboard operation
serverless-aws-alias copied to clipboard

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

Open SandeepThakare opened this issue 5 years ago • 1 comments
trafficstars

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.

SandeepThakare avatar Jul 02 '20 12:07 SandeepThakare

Hi @SandeepThakare did you find any solution for this?

AshKemp23 avatar May 04 '23 10:05 AshKemp23