Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Update the AWS Lambda function code if the function already exists. The operation can update the function code from the 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 will use the configured AWS cloud account to perform the operation.

Inputs

Input Name

Input Code

Type

Required

Description

Environment Variables

FDAWS_LAMBDA_INP_ENV_VAR

String

No

Environment Variables in acceptable format.

Publish new version

FDAWS_LAMBDA_INP_PUBLISH_VERSION

Boolean

No

Select to publish a new version. Default value is false.

Additional Arguments

FDAWS_LAMBDA_INP_ADDITIONAL_ARG

String

No

Literal key and value pairs, in the AWS CLI format.

e.g. --region=us-east-1

Target Properties

Property Name

Property Code

Type

Required

Description

AWS Cloud Account

FDAWS_ACCOUNT_CODE

String

Yes

AWS cloud account Name.

AWS CLI Path

FDAWS_CLI_PATH

String

No

The path to the directory where AWS CLI is installed.

AWS Region

FDAWS_REGION

String

No

The default region found on the top right corner of the AWS management console. e.g.us-east-1

Project Properties 

Property Name

Property Code

Type

Required

Description

Lambda Function Name

FDAWS_LAMBDA_FUNCTION_NAME

String

No

In case Function Name is not given, name of the code archive file will be considered as Function Name.

In case Function Name is not given and the code archive is present at S3 bucket, S3 key will be considered as Function Name.

In case name not provided and deployment through docker image, the name of docker image will be consider as Function Name.

KMS Detail

FDAWS_LAMBDA_KMS_KEY_OR_ARN

String

No

Key Id or Key ARN details. Key Id or Key ARN both are accepted. For any secured variables this detail is mandatory.

Code archive File Name

FDAWS_LAMBDA_ARTIFACT_FILE_PATH

String

No

Check if file exists on the given path, if file not exists then consider the path as relative path and operation will search the file in the $FD_ARTIFACT_DIR. If no file found in the artifact directory then check file in Artifact directory.

Environment Variables File Path

FDAWS_LAMBDA_ENV_VAR_FILE_PATH

String

No

If the file path is given, then check if file exists on the given path, if file not exists then consider the path as relative path and operation will search the file in the $FD_ARTIFACT_DIR. If no file found in the artifact directory with given path then check file in Archive present in Artifact directory.

Outputs

Output Name

Output Code

Optional

Description

 Response Message

FDAWS_LAMBDA_OUT_UPDATE_CODE_RESP_MSG

No

Response message of the update Function Code API.

Function Version Number

FDAWS_LAMBDA_OUT_UPDATE_CODE_PUBLISHED_VER

No

Version number of newly published version.

Artifacts

This operation will consume artifact, operation will look for the zip file in the artifact and if the zip file is present will use the file to update the function code.

Endpoint Selection

This operation will select all available endpoints associated to the target.

Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.

  • No labels