Connection - Amazon
The Amazon Connection stores the address, sign-in and security settings that these Tasks and Triggers use to connect to Amazon S3, other Amazon Web Services and S3-compatible storage services:
- Cloud - Upload file(s)
- Cloud - Download file(s)
- Cloud - List item(s)
- Cloud - List folder(s)
- Cloud - Create folder
- Cloud - Delete item(s)
- Cloud - Copy/move item(s)
- Cloud - Sync file(s)
- Amazon SNS - Publish message
- The Amazon EC2 Tasks
- The Amazon DynamoDB Tasks
- The Amazon SimpleDB Tasks
- The Cloud file Trigger
- The Amazon SQS Trigger
Common settings

The Common settings and Proxy tabs are the same for every Connection type that has them; see Common settings and Proxy.
Test asks the Server to connect with the current settings. For an Amazon Connection, the Server lists the objects in Default bucket. When Default bucket is empty, it lists the buckets of the account instead, so the AWS user needs permission to list buckets for the test to pass. When the test fails, the message refers to the Server log for details.
Main settings

These fields are on Connection settings -> Main settings.
Address
The endpoint address of an S3-compatible storage service. Leave it empty to connect to Amazon S3.
Authentication type
- "Password": signs requests with Access Key ID and Secret Access Key
- "Public key": hides Access Key ID and Secret Access Key and shows a certificate selector instead. The Server presents the selected Certificate as a TLS client certificate
Access Key ID and Secret Access Key
The access key of the AWS user. Shown for "Password".
Region
The region of the buckets, for example us-east-1. When Region is empty, the default region is used. When Address is set, the region is sent to the S3-compatible service as a custom region.
Use version 4 signatures
Selected by default. Requests are signed with AWS Signature Version 4. Leave it selected for Amazon S3. Clear it only for an S3-compatible service that requires Signature Version 2.
Use HEAD requests
Selected by default. The Server requests only the headers of an object when it reads object details. The Server uses HEAD requests whether or not the box is selected.
Auto-accept server certificates
Selected by default.
Amazon Connections accept any server certificate, whether or not Auto-accept server certificates is selected. The Server does not check the server certificate when it connects, so it cannot tell the real server from another server that answers at the same address. In addition, when a list, download or upload request fails with a connection-shutdown error whose message contains "75782", the Server repeats that request once without SSL, so the repeated request and its data travel unencrypted; requests that create folders are not repeated this way. Connect to Amazon S3, or to the S3-compatible service, only over a network path that you trust.
Use URL encoding
Selected by default. URL-encodes object keys. It applies only when Address is set, that is, to S3-compatible services.
Default bucket
The bucket that Tasks use when they name no bucket. Test also uses it.
Multipart upload threshold
The file size in bytes above which uploads use multipart upload. Default: "104857600" (100 MB).
Amazon SQS
The Amazon SQS Trigger uses this Connection to read messages from an SQS queue. Create the queue in the Amazon SQS console. The two images show the console when a queue is created and when queues are listed.


Troubleshooting
General
Click Test and check the Server log, or open the Connection in the Connection Explorer, to see the error that Amazon returns.
HTTP request failed with code 403 (Forbidden)
The AWS user does not have permission to list the buckets, or the objects in the bucket. Add the missing permission to the user. Tasks do not work without it.
SignatureDoesNotMatch
Select or clear Use version 4 signatures to change the signature version.
Connection lost (error code is 100353)
This is most likely a proxy error. Set the proxy on the Proxy tab of the Connection.
The hostname could not be parsed
Select an Amazon region in Region.
HTTP request failed with code 400 (Bad Request). Error code: AuthorizationHeaderMalformed
The selected region does not match the region of the bucket. Select the bucket's region in Region.