Authenticating with Amazon SimpleDB

Amazon SimpleDB authentication is used to validate the identity of the party making a request. Most requests to Amazon SimpleDB require authentication to verify that the subscriber is authorized to perform the requested action. Authentication ensures that you don't get charged for operations you did not authorize and that nobody else sees your private data.

Security always relies on a secret. For Amazon SimpleDB (and other AWS services), your secret is your AWS Secret Access Key. It should not be shared with others outside your organization, even if a request appears to come from Amazon.com. The AWS Secret Access Key is paired with an AWS Access Key ID. The AWS Access Key ID identifies you in your requests to Amazon SimpleDB. When a request is received with an AWS Access Key ID, Amazon SimpleDB verifies that the sender of the request knows the corresponding AWS Secret Access Key by validating a signature that is included with the request. You can find your AWS Access Key ID and Secret Access Key by visiting the AWS Access Key Identifiers page.

In the following samples, you simply add your AWS Access Key ID and AWS Secret Key to the sample files. For more information about authentication, refer to the Amazon SimpleDB Developer Guide.