addLambdaEnvironmentVariables
AWS Lambda environment variables use to adjust the function's behavior without updating the code. An environment variable is a pair of strings that are stored in a function's version-specific configuration. Lambda runtime makes environment variables available to our code and sets additional environment variables that contain information about the function and invocation request. Using the Environment variables file or Input Argument we can add the function Environment variables. The operation also support encryption of the variables using AWS KSM key. We can select the option to publish a new version, by default operation will not publish the new version. The operation will use the configured AWS cloud account to perform the operation.
Input
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 --memory-size=512 --timeout=33 And for boolean type arguments give the option without any value. e.g --publish --debug |
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. |
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 Environment Variable File will be considered as function name. |
FDAWS_LAMBDA_ENV_VAR_FILE_PATH | String | No | If the file path is given, then operation will check if file exists on the given path, if the file not exists then consider the path as relative path and operation will search the file in the $FD_ARTIFACT_DIR. If no file is found in the Artifact directory with given path then it will check file in Archive present in the Artifact directory. | |
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. |
Outputs
Output Name | Output Code | Optional | Description |
Function Version Number | FDAWS_LAMBDA_OUT_UPDATE_CODE_PUBLISHED_VER | No | Version number of newly published version. |
Artifacts
This operation will consume artifact (in case Environment Variable File provided). Operation will look for the property file in the artifact and use the file to update the Lambda Environment Variables.
Endpoint Selection
This operation will select all available endpoints associated with 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