Next: , Previous: , Up: SDK for JavaScript Documentation   [Index]

Loading the SDK for JavaScript

After you install the SDK, you can load the AWS package in your node application using require.

var AWS = require('aws-sdk');

In the Browser

The quickest way to get started with the SDK is to load the hosted SDK package directly from Amazon Web Services. To do this, add a ‘<script>’ element to your HTML pages in the following form:

<script src=""></script>

To find the current ‘SDK_VERSION_NUMBER’, see the API Reference for the SDK for JavaScript at:

After the SDK loads in your page, the SDK is available from the global variable AWS (or window.AWS).

If you bundle your code and module dependencies using browserify, you load the SDK using require, just as you do in Node.js.