AWS Lambda Alias

This page shows how to write Terraform and CloudFormation for Lambda Alias and write them securely.

aws_lambda_alias (Terraform)

The Alias in Lambda can be configured in Terraform with the resource name aws_lambda_alias. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in Terraform Registry

Creates a Lambda function alias. Creates an alias that points to the specified Lambda function version. For information about Lambda and how to use it, see [What is AWS Lambda?][1] For information about function aliases, see [CreateAlias][2] and [AliasRoutingConfiguration][3] in the API docs.

AWS::Lambda::Alias (CloudFormation)

The Alias in Lambda can be configured in CloudFormation with the resource name AWS::Lambda::Alias. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

The AWS::Lambda::Alias resource creates an alias for a Lambda function version. Use aliases to provide clients with a function identifier that you can update to invoke a different version.

You can also map an alias to split invocation requests between two versions. Use the RoutingConfig parameter to specify a second version and the percentage of invocation requests that it receives.

Frequently asked questions

What is AWS Lambda Alias?

AWS Lambda Alias is a resource for Lambda of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.