Skip to content

Instantly share code, notes, and snippets.


Steve Jenkins stevejenkins

View GitHub Profile
stevejenkins / cf-invalidate.php
Created Sep 7, 2011 — forked from claylo/cf-invalidate.php
How to invalidate a single item via URL in AWS CloudFront
View cf-invalidate.php
* Super-simple AWS CloudFront Invalidation Script
* Modified by Steve Jenkins <steve stevejenkins com> to invalidate a single file via URL.
* Steps:
* 1. Set your AWS Access Key
* 2. Set your AWS Secret Key
* 3. Set your CloudFront Distribution ID (or pass one via the URL with &dist)
* 4. Put cf-invalidate.php in a web accessible and password protected directory