You can create aliases for your Lambda function. A Lambda alias is a pointer to a function version that you can update. The function's users can access the function version using the alias Amazon Resource Name (ARN). When you deploy a new version, you can update the alias to use the new version, or split traffic between two versions.
To create an alias using the console
Open the Functions page
of the Lambda console. -
Choose a function.
-
Choose Aliases and then choose Create alias.
-
On the Create alias page, do the following:
-
Enter a Name for the alias.
-
(Optional) Enter a Description for the alias.
-
For Version, choose a function version that you want the alias to point to.
-
(Optional) To configure routing on the alias, expand Weighted alias. For more information, see Implement Lambda canary deployments using a weighted alias.
-
Choose Save.
-