updateLambdaFunctionCode
Update the AWS Lambda function code if the function already exists. The operation can update the function code from the AWS ECR, S3 Bucket, and local Archive directory. AWS ECR option will take priority, if AWS ECR detail is not given, then the operation will check for S3 bucket related details and if both AWS ECR and S3 options are not given, then the operation will use the local Archive directory option to update the function code. 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 KSM key. Operation will use the configured AWS cloud account to perform the operation.
Inputs
Input Name | Input Code | Type | Required | Description |
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 And for boolean type arguments give the option without any value. e.g --publish --debug |
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, then name will be retrieve on the basis of deployment option. ( If using AWS ECR Registry to update function code then, name of the image will be use as function name. ) ( If using S3 bucket to update function code then, name of the S3 bucket will be use as function name. ) ( If using local Archive to update function code then, name of the zip file will be use 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 using given path then check file in the entire Artifact directory. |
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. | |
S3 Bucket Name | FDAWS_LAMBDA_S3_BUCKET_NAME | String | No | S3 Bucket Name Where Zip file present |
S3 Key Name | FDAWS_LAMBDA_S3_KEY_NAME | String | No | S3 Key Name of the Zip file |
S3 Object Version | FDAWS_LAMBDA_S3_OBJECT_VERSION | String | No | S3 Object Version value |
URI of a Container Image | FDAWS_LAMBDA_ECR_REGISTRY_URL | String | No | URI of a container image in the Amazon ECR registry |
Outputs
Output Name | Output Code | Description |
 Response Message | FDAWS_LAMBDA_OUT_UPDATE_CODE_RESP_MSG | Response message of the update Function Code API. |
Function Version Number | FDAWS_LAMBDA_OUT_UPDATE_CODE_PUBLISHED_VER | 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.
- style