Skip to content

Instantly share code, notes, and snippets.

@0xRoch
Created March 17, 2011 10:30
Show Gist options
  • Save 0xRoch/874131 to your computer and use it in GitHub Desktop.
Save 0xRoch/874131 to your computer and use it in GitHub Desktop.
How to invalidate CloudFront files using Python
import boto
cf = boto.connect_cloudfront('key1', 'key2')
cf.create_invalidation_request("distribution_id", ["/path1","/path2"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment