Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 1.28 KB


Set up Lambda@Edge CloudFront behavior event triggers


claudia set-cloudfront-trigger {OPTIONS}


  • --distribution-id: CloudFront distribution ID
    • For example: E17XW3PXPSO9
  • --event-types: Comma-separated list of trigger event types. See for valid values
    • For example: viewer-request,origin-response
  • --version: Alias or numerical version of the lambda function to execute the trigger
    • For example: production
  • --path-pattern: (optional) The path pattern matching the distribution cache behavior you want to change
    • For example: /dev
    • Defaults to: change is applied to the default distribution cache behavior
  • --source: (optional) Directory with project files
    • Defaults to: current directory
  • --config: (optional) Config file containing the resource names
    • Defaults to: claudia.json
  • --aws-delay: (optional) number of milliseconds betweeen retrying AWS operations if they fail
    • For example: 3000
    • Defaults to: 5000
  • --aws-retries: (optional) number of times to retry AWS operations if they fail
    • For example: 15
    • Defaults to: 15