aws_cloudfront_create_invalidation
Invalidate cached content in CloudFront distributions to ensure users receive updated files immediately after deployment or content changes.
Instructions
Create a cache invalidation for a CloudFront distribution. Blocked in --readonly mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"distribution_id": "<distribution_id>",
"paths": "<paths>"
},
"name": "aws_cloudfront_create_invalidation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| distribution_id | Yes | CloudFront distribution ID | |
| paths | Yes | URL paths to invalidate (e.g., ['/*'] or ['/index.html', '/css/*']) |