Configuring the SDK for JavaScript - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

We announced the upcoming end-of-support for Amazon SDK for JavaScript v2. We recommend that you migrate to Amazon SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Configuring the SDK for JavaScript

Before you use the SDK for JavaScript to invoke web services using the API, you must configure the SDK. At a minimum, you must configure these settings:

  • The Region in which you will request services.

  • The credentials that authorize your access to SDK resources.

In addition to these settings, you may also have to configure permissions for your Amazon resources. For example, you can limit access to an Amazon S3 bucket or restrict an Amazon DynamoDB table for read-only access.

The Amazon SDKs and Tools Reference Guide also contains settings, features, and other foundational concepts common among many of the Amazon SDKs.

The topics in this section describe various ways to configure the SDK for JavaScript for Node.js and JavaScript running in a web browser.