Deploying versions using Lambda
If you have a known good state for your Lambda function, you can freeze it from future changes by publishing a version of the function. Once published, this version will be called and used by users and services independently of any changes or updates made to future versions, including iterations done on the $Latest
function.
When you publish a version of a Lambda function, it contains the following information:
- The function code, as well as all the dependencies that are associated with it.
- The Lambda runtime that invokes the function.
- All of the function settings, such as memory, VPC association, and IAM role.
- Any environment variables that have been added to the function.
- A unique Amazon Resource Name (ARN), so that the distinct version of the function can be identified:
Versions can be referenced in one of two ways: either...