Tag: SDK


Release: AWS SDK for PHP – Version 2.5.4

by Michael Dowling | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.5.4 of the AWS SDK for PHP. This release updates the Amazon CloudFront client, AWS OpsWorks client, and Elastic Load Balancing client; adds support for the AWS_SECRET_ACCESS_KEY environment variable; updates the Amazon S3 stream wrapper; addresses an issue with dot-segments in the Amazon S3 directory sync, and addresses an issue with Amazon S3 pre-signed URLs. Please refer to the CHANGELOG for a complete list of changes.

Install the SDK

Release: AWS SDK for PHP – Version 2.5.3

by Michael Dowling | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.5.3 of the AWS SDK for PHP. This release provides several client updates, Amazon S3 client issue fixes, and additional iterators. Please refer to the CHANGELOG for a complete list of changes.

Install the SDK

Using New Regions and Endpoints

by Jeremy Lindblom | on | in PHP | Permalink | Comments |  Share

Last week, a customer asked us how they could configure the AWS SDK for PHP to use Amazon SES with the EU (Ireland) Region. SES had just released support for the EU Region, but there was no tagged version of the SDK that supported it yet.

Our typical process is to push new support for regions to the master branch of the AWS SDK for PHP repository as soon as possible after they are announced. In fact, at the time that the customer asked us about EU Region support in SES, we had already pushed out support for it. However, if you are using only tagged versions of the SDK, which you should do with production code, then you may have to wait 1 or 2 weeks until a new version of the SDK is released.

Configuring the base URL of your client

Fortunately, there is a way to use new regions and endpoints, even if the SDK does not yet support a new region for a service. You can manually configure the base_url of a client when you instantiate it. For example, to configure an SES client to use the EU Region, do the following:

$ses = AwsSesSesClient::factory(array(
    'key'      => 'YOUR_AWS_ACCESS_KEY_ID',
    'secret'   => 'YOUR_AWS_SECRET_KEY',
    'region'   => 'eu-west-1',
    'base_url' => 'https://email.eu-west-1.amazonaws.com',
));

Remember, you only need to specify the base_url if the SDK doesn’t already support the region. For regions that the SDK does support, the endpoint is automatically determined.

To find the correct URL to use for your desired service and region, see the Regions and Endpoints page of the AWS General Reference documentation.

Using the base_url for other reasons

The base_url option can be used for more than just accessing new regions. It can be used to allow the SDK to send requests to any endpoint compatible with the API of the service you are using (e.g., mock/test services, private beta endpoints).

An example of this is the DynamoDB Local tool that acts as a small client-side database and server that mimics Amazon DynamoDB. You can easily configure a DynamoDB client to work with DynamoDB Local by using the base_url option (assuming you have correctly installed and started DynamoDB Local).

$dynamodb = AwsDynamoDbDynamoDbClient::factory(array(
    'key'      => 'YOUR_AWS_ACCESS_KEY_ID',
    'secret'   => 'YOUR_AWS_SECRET_KEY',
    'region'   => 'us-east-1',
    'base_url' => 'http://localhost:8000',
));

For more information, see Setting a custom endpoint in the AWS SDK for PHP User Guide.

Using the latest SDK via Composer

If you are using Composer with the SDK, then you have another option for picking up new features, like newly supported regions, without modifying your code. If you need to use a new feature or bugfix that is not yet in a tagged release, you can do so by adjusting the SDK dependency in your composer.json file to use our development alias 2.5.x-dev.

{
    "require": {
        "aws/aws-sdk-php": "2.5.x-dev"
    }
}

Using the development alias, instead of dev-master, is ideal, because if you have other dependencies that require the SDK, version constraints like "2.5.*" will still resolve correctly. Remember that relying on a non-tagged version of the SDK is not recommended for production code.

Release: AWS SDK for PHP – Version 2.5.2

by Jeremy Lindblom | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.5.2 of the AWS SDK for PHP. This release adds support for dead letter queues to the Amazon Simple Queue Service client. Please see the official release notes or the release CHANGELOG for a complete list of changes.

Install the SDK

Release: AWS SDK for PHP 2.5.1

by Michael Dowling | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.5.1 of the AWS SDK for PHP. This release updates to the Amazon EC2 client, the Auto Scaling client, and addresses several issues. Please see the CHANGELOG for a full list of changes.

Install the SDK

Release: AWS SDK for PHP – Version 2.5.0

by Jeremy Lindblom | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.5.0 of the AWS SDK for PHP. This release adds support for audio profiles in Amazon Elastic Transcoder, geo restriction in Amazon CloudFront, and the recently announced China (Beijing) Region. Please see the official release notes or the CHANGELOG for a full list of changes.

Version 2.5.0 is a major release of the SDK, and contains some minor, backwards-incompatible changes that may affect the way you use some service clients in the SDK. Please read the UPGRADING.md document for details about what has changed and what you may need to do to update your code.

Install the SDK

Release: AWS SDK for PHP – Version 2.4.12

by Michael Dowling | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.4.12 of the AWS SDK for PHP.

This release adds support for Amazon Kinesis, adds global secondary indexes support to the Amazon DynamoDB client, and provides several other client updates and fixes.

Install the Latest SDK

Release: AWS SDK for PHP – Version 2.4.11

by Jeremy Lindblom | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.4.11 of the AWS SDK for PHP. This release updates the Amazon EC2 and Amazon RDS clients to use the latest API versions.

Changelog

  • Added support for copying DB snapshots from one AWS region to another to the Amazon RDS client
  • Added support for pagination of the DescribeInstances and DescribeTags operations to the Amazon EC2 client
  • Added support for the new C3 instance types and the g2.2xlarge instance type to the Amazon EC2 client
  • Added support for enabling Single Root I/O Virtualization (SR-IOV) support for the new C3 instance types to the Amazon EC2 client
  • Updated the Amazon EC2 client to use the 2013-10-15 API version
  • Updated the Amazon RDS client to use the 2013-09-09 API version
  • Updated the Amazon CloudWatch client to use Signature Version 4

Install/Download the Latest SDK

Release: AWS SDK for PHP – Version 2.4.10

by Jeremy Lindblom | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.4.10 of the AWS SDK for PHP. This release adds support for AWS CloudTrail, identity federation using SAML 2.0 for AWS Identity and Access Management (IAM), and a few new features to the Amazon Redshift client.

Changelog

  • Added support for AWS CloudTrail
  • Added support for identity federation using SAML 2.0 to the AWS STS client
  • Added support for configuring SAML-compliant identity providers to the AWS IAM client
  • Added support for HSM storage for encryption keys to the Amazon Redshift client
  • Added support for encryption key rotation to the Amazon Redshift client
  • Added support for database audit logging to the Amazon Redshift client

Install/Download the Latest SDK

Release: AWS SDK for PHP – Version 2.4.9

by Michael Dowling | on | in PHP | Permalink | Comments |  Share

We would like to announce the release of version 2.4.9 of the AWS SDK for PHP. This release adds support for cross zone load balancing in Elastic Load Balancing, stack policies in AWS CloudFormation, and the Gateway-Virtual Tape Library in AWS Storage Gateway.

Changelog

  • Added support for cross-zone load balancing to the Elastic Load Balancing client.
  • Added support for a new gateway configuration, Gateway-Virtual Tape Library, to the AWS Storage Gateway client.
  • Added support for stack policies to the the AWS CloudFormation client.
  • Fixed issue #176 where attempting to upload a direct to Amazon S3 using the UploadBuilder failed when using a custom iterator that needs to be rewound.

Install/Download the Latest SDK