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.
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.
To create an alias using the AWS Command Line Interface (AWS CLI), use the create-alias command.
aws lambda create-alias \
--function-name my-function
\
--name alias-name
\
--function-version version-number
\
--description " "
To change an alias to point a new version of the function, use the update-alias command.
aws lambda update-alias \
--function-name my-function
\
--name alias-name
\
--function-version version-number
To delete an alias, use the delete-alias command.
aws lambda delete-alias \
--function-name my-function
\
--name alias-name
The AWS CLI commands in the preceding steps correspond to the following Lambda API operations:
File system
Using aliases
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4