AWS SDK for JavaScript
Developer Guide for SDK v2.154.0

Setting the Region

A region is a named set of AWS resources in the same geographical area. An example of a region is us-east-1, which is the US East (N. Virginia). You specify a region when configuring the SDK for JavaScript so the SDK accesses the resources in that region. Some services are only available in some regions.

                    AWS Regions shown around the Earth.

The SDK for JavaScript doesn't select a region by default. To set the region, update the AWS.Config global configuration object as shown in the following example:

AWS.config.update({region: 'us-east-1'});

For more information about current regions and available services in each region, see AWS Regions and Endpoints.