CloudFront
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /pipelines
- /:pipeline_id
- /actions
Creates a new CloudFront action in the pipeline
Examples
Example: CloudFront (CLOUD_FRONT)
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Cloudfront action",
"type": "CLOUD_FRONT",
"trigger_time": "ON_EVERY_EXECUTION",
"input_type": "SCM_REPOSITORY",
"local_path": "/",
"base_url": "/merged",
"distribution_id": "EDFDVBD632BHDS5",
"purge_all": false,
"timeout": 900,
"integration": {
"identifier": "aws"
},
"deployment_excludes": [
"/tmp/",
"*.log"
],
"deployment_includes": [
"/assets/style",
"/tmp/file.txt"
]
}'Example: CloudFront - purge fixed paths
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/pipelines/:pipeline_id/actions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"name": "Purge CloudFront paths",
"type": "CLOUD_FRONT",
"trigger_time": "ON_EVERY_EXECUTION",
"distribution_id": "EDFDVBD632BHDS5",
"purge_all": false,
"paths": [
"/index.html",
"/assets/app.css"
],
"integration": {
"identifier": "aws"
}
}'STATUS200 OK