Cloudfront
Parameters
Name | Description |
---|---|
distribution_id Required String | The ID of the Cloudfront web distribution. |
name Required String | The name of the action. |
trigger_time Required String | Specifies when the action should be executed. Can be one of ON_EVERY_EXECUTION , ON_FAILURE or ON_BACK_TO_SUCCESS . |
type Required String | The type of the action. Should be set to CLOUDFLARE . |
integration Required Integration | The integration. |
input_type String | Defines whether the files are deployed from the repository or from the build filesystem. Can be one of SCM_REPOSITORY or BUILD_ARTIFACTS . |
local_path String | The path in the repository. |
run_only_on_first_failure Boolean | Defines whether the action should be executed on each failure. Restricted to and required if the trigger_time is ON_FAILURE . |
remote_path String | The absolute or relative path on the remote server. |
purge_all Boolean | Specifies whether or not the whole cache should be removed. |
wait_for_completed Integer | Specifies how long (in minutes) the execution should wait for the invalidation COMPLETED status. |
deployment_excludes String[] | The paths and/or files that will be left out during the deployment. Available only if purge_all is set to false . |
Example
actions:
- action: "Cloudfront action"
type: "CLOUD_FRONT"
input_type: "SCM_REPOSITORY"
local_path: "/"
distribution_id: "EDFDVBD632BHDS5"
purge_all: false
remote_path: "/merged"
integration_id: 2
wait_for_completed: 15
deployment_excludes:
- "/tmp"
- "*.log"