YAML for CloudFront
Invalidate CloudFront distribution cache to serve updated content.
YAML examples for CloudFront
Invalidate CloudFront cache
yaml
- action: "Invalidate CloudFront cache"
type: "CLOUD_FRONT"
integration: "my_integration"
distribution_id: "E1A2B3C4D5E6F7"
input_type: "SCM_REPOSITORY"
local_path: "/"
purge_all: false
deployment_excludes:
- "/tmp"
- "*.log"
deployment_includes:
- "/assets"
- "/styles"
Purge cache by fixed paths
yaml
- action: "Invalidate CloudFront paths"
type: "CLOUD_FRONT"
integration: "my_integration"
distribution_id: "E1A2B3C4D5E6F7"
purge_all: false
paths:
- "/index.html"
- "/assets/app.css"
Purge everything under a path prefix
yaml
- action: "Invalidate static files"
type: "CLOUD_FRONT"
integration: "my_integration"
distribution_id: "E1A2B3C4D5E6F7"
purge_all: true
base_url: "/static"