0
votes

I want to make the alias of an AWS lambda function point to another version.

Since I can't find how to update an alias using AWS management console. I deleted and created the alias.

But then I found that all the cloudwatch rules that trigger the lambda function failed to work:

enter image description here

Is it possible to recreate the alias of a lambda function without breaking cloudwatch rules?

Where can I find the log for FailedInvocations of cloudwatch rules? I'd like to dig deeper to know the reason of the failure.

Doesn't AWS management console have the update-alias button?

1

1 Answers

3
votes

From the AWS Management console you can change version number tagged with the alias.

To change the version number of your existing alias, got to the Lambda Function and select alias from the Switch versions/aliases dropdown. from the Aliases section you can change the version number, as well as you can divert traffic between two versions based on based on weights (%).

enter image description here

After creating the new Lambda function alias you can just re-select the alias from the existing CloudWatch without breaking the rules.