Menu
AWS Import/Export
Developer Guide (API Version 2014-12-18)

Query Authentication

You can send requests over HTTPS. When you do, you must include a signature in every request. This section describes how to create the signature. The method described in the following procedure is known as signature version 2.

Sample GetStatus Request

The following request gets the current status of an import job (modified to make the Signature inside the request invalid).

POST / HTTP/1.1
content-type:application/x-www-form-urlencoded;charset=utf-8
host: https://importexport.amazonaws.com
content-length:639

Action=GetStatus&SignatureMethod=HmacSHA256&JobId=JOBID&SignatureVersion=2&Version=2010-06-01&Signature=%2FVfkltRBOoSUi1sWxRzN8rw%3D&Timestamp=2011-06-20T22%3A30%3A59.556Z

The following is the string to sign.

The body of the request is all on one line. However, line feeds have been added to make the examples easier to read.

POST\n
importexport.amazonaws.com\n
/\n
&Action=GetStatus
&JobId=JOBID
&SignatureMethod=HmacSHA256
&SignatureVersion=2
Version=2010-06-01&
				

The following is the signed request.

POST\n
importexport.amazonaws.com\n
/\n
&Action=GetStatus
&JobId=JOBID
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Version=2010-06-01
&Signature=%2FVfkltRBOoSUi1sWxRzN8rw%3D
&Timestamp=2011-06-20T22%3A30%3A59.556Z