Cloudfront with YAML

YAML parameters for Cloudfront

NameTypeDescription
action RequiredStringThe name of the action.
type RequiredStringThe type of the action. Should be set to CLOUDFLARE.
distribution_id RequiredStringThe ID of the Cloudfront web distribution.
integration RequiredStringThe ID of the integration.
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.
base_urlStringThe absolute or relative path on the remote server.
purge_allBooleanSpecifies whether or not the whole cache should be removed.
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.

YAML example for Cloudfront

yaml
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: "my_integration" timeout: 900 deployment_excludes: - "/tmp" - "*.log" deployment_includes: - "/tmp/assets" - "/tmp/styles"

Last modified on Sep 24, 2024