Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. To configure Project specific Source Control one first need to navigate to the Project Configuration tab.

  2. Next, expand the SOURCE CONTROL option from the left-hand pane.

  3. Select the appropriate Source Control Type

  4. Configure Source Repository. For detailed steps of Source Control configuration please refer to Configure Source Control in FlexDeploy

Project Properties

...

  1. FlexDeploy 6.5

  2. AWS Lambda Function Code Deploy Using Local Archive

...

Share

AWS Lambda Function Code Deploy Using Local Archive

Introduction

AWS Lambda function's code consists of scripts or compiled programs and their dependencies. We use a deployment package to deploy our function code to Lambda. Lambda supports two types of deployment packages: container images and .zip file archives. We are going to use the updateLambdaFunctionCode operation to deploy the function code. The operation can deploy the function code from the AWS ECR, S3 Bucket, and local Archive directory. We can select the option to publish a new version, by default operation will not publish the new version. Using the Environment variables file or Input Argument we can also add the function Environment variables. Operation also support encryption of the variables using AWS KMS key. Operation will use the configured AWS cloud account to perform the operation.

Objective

The goal of the tutorial is to deploy the function code using the Archive file from the Artifact directory and publish the function version. We will use the Function code and Environment file present at the git repository. We are going to add secured variables also and to encrypt these variables, we will use the AWS KMS key.

  • configuration of the properties e.g. Cloud account, and CLI path.

  • cloning the function code and create the Archive file.

  • cloning the environment file from Git repository

  • deploy the function code and adding the environment variables to the Lamba function.

  • verify the function code.

...