serverless-aws-alias
serverless-aws-alias copied to clipboard
Support the ability to create an alias with the underscore/hyphen characters
I want to use this plugin to implement multiple versions per stage, so when deploying a new version, I will deploy new alias such as v1.0.0. I try to deploy with alias=v1_0_0_uat, but I am getting an error as below
The stack alias name "sls-test-project-dev-v1_0_0_uat" is not valid. A service name should only contain alphanumeric (case sensitive) and hyphens. It should start with an alphabetic character and shouldn't exceed 128 characters.
or below error if I use alias=v1-2-0-uat (with hyphen characters): I prefer this naming convention
The CloudFormation template is invalid: Template format error: Resource name IamRoleLambdaExecutionv1-2-0-uat is non alphanumeric.
In AWS, we are able to create a stage with above name, so I would be better if we standardlize the alias before adding to the CF resource (e.g. remove all _ character or use the correct character to avoid error).
By the way, how is the alias promote feature going? Do you have any idea when this will be available for use?
Thanks.