Installation guide

$aws = Aws\Common\Aws::factory(array(
'region' => 'us-west-2',
'key' => '****',
'secret' => '****',
'ssl.certificate_authority' => '/path/to/updated/cacert.pem'
));
You can find out more about how cURL bundles the CA bundle here: http://curl.haxx.se/docs/caextract.html
How do I disable SSL?
Warning
Because SSL requires all data to be encrypted and requires more TCP packets to complete a connection
handshake than just TCP, disabling SSL may provide a small performance improvement. However, with SSL
disabled, all data is sent over the wire unencrypted. Before disabling SSL, you must carefully consider the
security implications and the potential for eavesdropping over the network.
You can disable SSL by setting the scheme parameter in a client factory method to 'http'.
$client = Aws\DynamoDb\DynamoDbClient::factory(array(
'region' => 'us-west-2',
'scheme' => 'http'
));
How can I make the SDK faster?
See Performance Guide for more information.
Why can't I upload or download files greater than 2GB?
Because PHP's integer type is signed and many platforms use 32-bit integers, the AWS SDK for PHP does not
correctly handle files larger than 2GB on a 32-bit stack (where "stack" includes CPU, OS, web server, and PHP
binary). This is a well-known PHP issue. In the case of Microsoft® Windows®, there are no official builds of PHP
that support 64-bit integers.
The recommended solution is to use a 64-bit Linux stack, such as the 64-bit Amazon Linux AMI with the latest
version of PHP installed.
For more information, please see: PHP filesize :Return values.
How can I see what data is sent over the wire?
You can attach a Guzzle\Plugin\Log\LogPlugin to any client to see all request and response data sent over
the wire. The LogPlugin works with any logger that implements the Guzzle\Log\LogAdapterInterface
interface (currently Monolog, ZF1, ZF2).
If you just want to quickly see what data is being sent over the wire, you can simply attach a debug log plugin to your
client.
use Guzzle\Plugin\Log\LogPlugin;
// Create an Amazon S3 client
$s3Client = S3Client::factory();
// Add a debug log plugin
$s3Client->addSubscriber(LogPlugin::getDebugPlugin());
For more complex logging or logging to a file, you can build a LogPlugin manually.
Frequently Asked Questions (FAQ)
47