Amazon CloudFront Authentication Tool for Curl

Developer Tools>CloudFront>Amazon CloudFront Authentication Tool for Curl
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

Curl is a popular command-line tool for interacting with HTTP services. This Perl script calculates the proper Amazon CloudFront authentication signature, then calls Curl with the appropriate arguments.

Details

Submitted By: Matt@AWS
AWS Products Used: Amazon CloudFront, Amazon S3
Language(s): Perl
License: Apache License 2.0
Created On: November 17, 2008 8:51 PM GMT
Last Updated: October 22, 2012 11:35 PM GMT
Download

About This Sample

  • Curl is a popular command-line tool for interacting with HTTP services.
  • This Perl script calculates the proper Amazon CloudFront authentication signature, then calls Curl with the appropriate arguments.

Prerequisites

  • You must be signed up to use Amazon S3 and Amazon CloudFront. You can sign up for Amazon S3 at http://aws.amazon.com/s3 and Amazon CloudFront at http://aws.amazon.com/cloudfront.
  • This sample was built using Perl 5.8.0.
  • The following Perl modules, which you can download from CPAN:
    • Digest::HMAC_SHA1
    • FindBin
    • MIME::Base64
    • Getopt::Long
    • File::Temp
    • File::Basename
    • Fcntl
  • This sample requires version 7.16.2 or newer of Curl .

Running the Sample

  • Run the sample using a command-line interface. For example:
    ./cfcurl.pl --keyname=[friendly key name] -- [curl-options]
  • See the CloudFront Getting Started Guide for more information on running the sample.

Comments

Falls short in many ways.
The entire point of writing a wrapper is so that it relieves the user of having to craft complex commands and save time. This script has no documentation, no real output help (with --help)
M. Sacks on January 10, 2009 9:28 PM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.