The Amazon CloudFront Authentication Tool for Curl, is used to interface with the Amazon CloudFront service. requires Perl 5.8.0 or greater, curl 7.16.2 or greater, the following Perl modules:

  • Digest::HMAC_SHA1
  • FindBin
  • MIME::Base64
  • Getopt::Long
  • File::Temp
  • File::Basename
  • Fcntl

This tool does not require environment variables to be set, but it does use the file ~/.aws-secrets to store AWS credentials. To setup the ~/.aws-secrets file, see HowTo: Install AWS CLI - Security Credentials.

Install Script

If you’re running Linux, this script will do everything this article covers: from our aws_scripts collection. Be sure to run it as root or use sudo.

Git Repository

Checkout the repository. This only needs to be done once throughout this series of articles.

Console - user@hostname ~ $

git clone

Run install script

Console - user@hostname ~ $

sudo aws_scripts/install_aws_cli/

Direct Download of Script

Console - user@hostname ~ $

curl -L | sudo bash

Install Process

Download the file.

Console - root@hostname ~ #

curl --silent \
--output /usr/local/bin/ \

Set to be able to execute.

Console - root@hostname ~ #

chmod 755 /usr/local/bin/


Parts in this series