Available Region Endpoints for the AWS SDKs

AWS infrastructure services are hosted in a number of regions, including locations in the US, Europe, and Asia Pacific. This article lists the web service API endpoints needed to make API requests and manage infrastructure in each region.


Submitted By: Craig@AWS
AWS Products Used: Amazon SNS, Amazon RDS, AWS Import/Export, Amazon S3, AWS Identity & Access Management, AWS Cloudformation, Amazon CloudFront, Amazon SQS, Amazon Simple Email Service, Auto Scaling, AWS Elastic Beanstalk, Amazon CloudWatch, Amazon EC2, Elastic Load Balancing, Amazon SimpleDB
Language(s): PHP, Objective C, C#, Java
Created On: June 03, 2010


AWS infrastructure services are hosted in multiple locations world-wide. These regions are logically isolated from each other, so for example, you won't be able to access US East resources when communicating with the EU West endpoint. You might choose a region to optimize latency, minimize costs, or address regulatory requirements.

For more information on how services operate in each region, see the service Developer Guide at https://aws.amazon.com/documentation. For information about AWS regions and endpoints, go to Regions and Endpoints in the Amazon Web Services General Reference.

Topics

Using Regions with the AWS SDKs
AWS Regions and Endpoints Reference

Using Regions with the AWS SDKs

The AWS SDKs support making requests to each region. The region endpoint is set by configuring the client object. The following examples demonstrate how to configure the endpoint used in your requests to a service.

Example Using the AWS SDK for Java or AWS SDK for Android

AmazonEC2Client ec2 = new AmazonEC2Client(myCredentials);
ec2.setEndpoint("ec2.ap-southeast-1.amazonaws.com");
ec2.describeInstances();

Note: See AWS SDK for Java Tips and Tricks for more information about configuring the client object for the AWS SDK for Java.

Example Using the AWS SDK for .NET

AmazonElasticLoadBalancingConfig config = new   AmazonElasticLoadBalancingConfig();
config.ServiceURL =   "https://ap-southeast-1.elasticloadbalancing.amazonaws.com";
AmazonElasticLoadBalancing  elb = new AmazonElasticLoadBalancingClient("ACCESS_KEY", "SECRET_KEY",    config);

Example Using the AWS SDK for PHP

$ec2 = new AmazonEC2();
$ec2->set_hostname('ec2.ap-southeast-1.amazonaws.com');
$response = $ec2->describe_instances();

Example Using the AWS SDK for iOS

AmazonSimpleDBClient *sdb = [[AmazonSimpleDBClient alloc]  initWithAccessKey:@"ACCESS_KEY"  
withSecretKey:@"SECRET_KEY"]; sdb.endpoint = @"https://sdb.amazonaws.com";

AWS Regions and Endpoints

For information about AWS regions and endpoints, go to Regions and Endpoints in the Amazon Web Services General Reference.