The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
CloudFront Invalidation from Ruby

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mike Gaffney

Posts: 34
Nickname: gaffo
Registered: Dec, 2008

Mike Gaffney is a lead Ruby and Java developer at Asynchrony Solutions
CloudFront Invalidation from Ruby Posted: May 13, 2011 4:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Mike Gaffney.
Original Post: CloudFront Invalidation from Ruby
Feed Title: confabulus
Feed URL: http://blog.confabulus.com/feed/
Feed Description: rails, coding, and the goings on at confabulus
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Mike Gaffney
Latest Posts From confabulus

Advertisement
Since none of the examples that I could find on the internet of how to invalidate a cloudfront asset in ruby were correct, I decided to post my solution: require 'rubygems' # may not be needed require 'openssl' require 'digest/sha1' require 'net/https' require 'base64' class CloudfrontInvalidator def initialize(aws_account, aws_secret, distribution) @aws_account = aws_account @aws_secret = aws_secret @distribution = distribution end def invalidate(path) date = Time.now.strftime("%a, %d %b %Y [...]

Read: CloudFront Invalidation from Ruby

Topic: CloudFront Invalidation from Ruby Previous Topic   Next Topic Topic: Hiring hiring hiring

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use