AWS Lambda Deploy with YAML

YAML parameters for AWS Lambda Deploy

NameTypeDescription
action
Required
StringThe name of the action.
function_name
Required
StringThe name of the Lambda function.
integration_id
Required
IntegerThe ID of the integration.
region
Required
StringThe Amazon region.
type
Required
StringThe type of the action. Should be set to AWS_LAMBDA_DEPLOY.
trigger_timeStringSpecifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
local_pathStringThe path in the repository.
deployment_excludesString[]The paths and/or files that will be left out during the deployment.
trigger_conditionStringDefines when the build action should be run. Can be one of ALWAYS, ON_CHANGE, ON_CHANGE_AT_PATH, VAR_IS, VAR_IS_NOT or VAR_CONTAINS.
trigger_condition_pathsString[]Required when trigger_condition is set to ON_CHANGE_AT_PATH.
trigger_variable_keyStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the name of the desired variable.
trigger_variable_valueStringRequired when trigger_condition is set to VAR_IS, VAR_IS_NOT or VAR_CONTAINS. Defines the value of the desired variable which will be compared with its current value.
disabledBooleanWhen set to true the action is disabled. By default it is set to false.

YAML example for AWS Lambda Deploy

actions:
- action: "Deploy function my-function"
type: "AWS_LAMBDA_DEPLOY"
integration_id: 20
function_name: "my-function"
region: "us-east-1"
local_path: "/"
deployment_excludes:
- "/assets/"
- "file.txt"
deployment_includes:
- "/assets/assets-new/"
- "/assets/file.txt"