Cloudfront with YAML

YAML parameters for Cloudfront

You can find the list with common parameters for all Buddy actions here.

NameTypeDescription
action
Required
StringThe name of the action.
type
Required
StringThe type of the action. Should be set to CLOUDFLARE.
distribution_id
Required
StringThe ID of the Cloudfront web distribution.
integration_id
Required
IntegerThe ID of the integration.
distribution_name
Required
StringThe name of the Cloudfront web distribution.
input_typeStringDefines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS.
local_pathStringThe path in the repository.
run_only_on_first_failureBooleanDefines whether the action should be executed on each failure. Restricted to and required if the trigger_time is ON_FAILURE.
base_urlStringThe absolute or relative path on the remote server.
purge_allBooleanSpecifies whether or not the whole cache should be removed.
wait_for_completedIntegerSpecifies how long (in minutes) the execution should wait for the invalidation COMPLETED status.
deployment_excludesString[]The paths and/or files that will be left out during the deployment. Available only if purge_all is set to false.
deployment_includesString[]The exceptions from the ignore patterns set in deployment_excludes.
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 Cloudfront

actions:
- action: "Cloudfront action"
type: "CLOUD_FRONT"
input_type: "SCM_REPOSITORY"
local_path: "/"
distribution_name: "buddy.works"
distribution_id: "EDFDVBD632BHDS5"
purge_all: false
base_url: "/merged"
integration_id: 2
wait_for_completed: 15
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/tmp/assets"
- "/tmp/styles"