Amazon Route 53 Authentication Tool for Curl

Sample Code & Libraries>Amazon Route 53>Amazon Route 53 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 Route53 authentication signature, then calls Curl with the appropriate arguments.

Details

Submitted By: Woody
AWS Products Used: Amazon Route 53
Language(s): Perl
License: Apache License 2.0
Created On: December 2, 2010 11:58 PM GMT
Last Updated: October 20, 2011 4:06 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 Route 53 authentication signature, then calls Curl with the appropriate arguments.

Prerequisites

  • You must be signed up to use Amazon Route 53. You can sign up for Amazon Route 53 at http://aws.amazon.com/route53.
  • This sample was tested with Perl 5.8.8.
  • The following Perl modules, which you can download from CPAN:
    • Digest::HMAC_SHA1
    • FindBin
    • MIME::Base64
    • Getopt::Long
    • File::Temp
    • File::Basename
    • Fcntl
    • IO::Handle
  • This sample requires version 7.15.5 or newer of Curl.

Running the Sample

  • Run the sample using a command-line interface. For example:
    ./dnscurl.pl --keyfile ~/.aws-secrets --keyname my-aws-account
      -- -v -H "Content-Type: text/xml; charset=UTF-8"
      https://route53.amazonaws.com/2010-10-01/hostedzone
    
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.