Versions Compared

Key

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

...

Below given is a sample workflow to deploy lambda function code from AWS S3 bucket and update already existing Alias to point the newly published version.

...

Step-i: updateLambdaFunctionCode

This step will deploy Lambda function code, and also publish the function version. We are setting function version variable, which we will use in upsert lambda operation.

...

In above configuration using following Inputs.

Input Name

Input Code

Type

Required

Description

Additional Arguments

FDAWS_LAMBDA_INP_ADD_ENV_VAR_ADDITIONAL_ARG

String

No

Literal key and value pairs. e.g. --region=us-east-1

And for boolean type arguments give the option without any value. e.g --publish --debug

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.

Step-ii: upsertLambdaAlias

This step will update the given Alias ( Dev ) , with the newly published version.

...

In above configuration using following Inputs.

Input Name

Input Code

Type

Required

Description

Alias Name

FDAWS_LAMBDA_INP_ALIAS_NAME

String

Yes

AWS Lambda Alias name

Alias Description

FDAWS_LAMBDA_INP_ALIAS_DESCR

String

No

Description of the Alias

Alias Additional Argument

FDAWS_LAMBDA_INP_ALIAS_ADDITIONAL_ARG

String

No

Literal key and value pairs. e.g. --region=us-east-1 And for boolean type arguments give the option without any value. e.g --publish --debug

Alias Function Version

FDAWS_LAMBDA_INP_FUNCTION_VERSION

String

Yes

Function version associated with Alias