Skip to content

Instantly share code, notes, and snippets.

View madysondesigns's full-sized avatar

Sarah Whinnem madysondesigns

View GitHub Profile
@madysondesigns
madysondesigns / aws_cf_invalidate.rb
Last active August 29, 2015 14:10 — forked from jmlacroix/aws_cf_invalidate.rb
Invalidate Cloudfront objects from the command line.
# Forked from jmlacroix/aws_cf_invalidate.rb
# Modified to read s3 creds from the environment and the distribution id from arguments passed in.
require 'rubygems'
require 'hmac-sha1'
require 'net/https'
require 'base64'
s3_access=ENV['S3_ACCESS']
s3_secret=ENV['S3_SECRET']