Table of Contents |
---|
Introduction
We can create one or more aliases for our Lambda function. A Lambda alias is like a pointer to a specific function version. We can access the function version using the alias Amazon Resource Name (ARN). We can create or update an Alias using the upsertLambdaAlias operation available in the AWS plugin.
...
Navigate to the Workflows tab and create a utility workflow using the “+”(Click to create new Workflow) button as highlighted below.
...
The Workflow Group and Subgroup define the folder hierarchy. Once both workflows are created it should look like the below. No constraint on workflow or folder naming convention.
...
The steps of the workflow execution can be configured through the Workflow Definition section.
...
Step-i: Upsert Alias Details
This step will create or update the Alias and will set the response message, function version, previous function version and additional weights detail as plugin output. Name of the Alias is the mandatory field.
...
Project Configuration
Navigate to the Project tab and create a Project with a logical name (AWS-Lambda-Upsert-Alias in this case)
...
Configure the utility workflow that has been created in previous steps as shown below.
...
Project Properties
...
Lambda Function name: Name of the Function to get the Alias details.
Target Properties
Select Topology from the menu and then select Targets. Select the target group and environment, provide the properties detail, according to the description.
Properties | Mandatory field | Description |
Cloud Account | Optional | Select the Cloud Account to connect the Lambda Function. |
CLI Path | Optional | Directory where Cloud CLI is installed. |
AWS Region | Optional | Value of the AWS Region. |
Below given are the environment-specific values which need to be updated.
...
Execution Result
After successful execution of the operation, we can see the Alias details.
...
Below is the plugin output, it contains Alias response, function version, previous function version and Additional weights.
...
We can verify the Alias on the AWS console.
...