Create an alias for an AWS Lambda function

InstructorTomasz Łakomy

Share this video with your friends

Send Tweet

Every AWS resource has a unique ARN - Amazon Resource Name.

This is true for AWS Lambda function versions as well, which means that every single time we publish a new version of a function, we'd need to update our backend to point to this new ARN.

In this lesson we're going to learn how to create an alias for an AWS Lambda function so we're able to do following things without having to update any code calling the function:

  • Update the function with a new version while keeping the same ARN pointing to it
  • Have a single ARN that once executed is going to call either one of two versions by having a random 50/50 split - useful for A/B testing on production