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
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.
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 existI 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.