These are examples for the AWS SDK for JavaScript version 2 (v2) public documentation.
The AWS SDK for JavaScript v2 Developer Guide contains topics for these examples.
Note: Examples for AWS SDK for JavaScript version 3 (v3) are available in the javascriptv3/example_code folder in this repo.
To build and run these examples, you'll need:
- Node.js
- AWS SDK for JavaScript downloaded and extracted somewhere on your machine
- AWS credentials in a shared credentials file
Examples are written for either execution in a browser script or in Node.js, usually depending on the use case for each. The two scenarios typically differ in how you supply credentials to the code. These differences are described in the Developer Guide at https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-credentials.html
To run the examples, you'll need to create a shared credentials file. For more information about how to set up a shared credentials file, see Loading Credentials in Node.js from the Shared Credentials File in the AWS SDK for JavaScript Developer Guide.
The Node.js examples are all run from the command line.
You can download minified and non-minified distributable versions of the current AWS SDK for JavaScript at:
https://github.com/aws/aws-sdk-js/tree/master/dist
You can find detailed documentation for the AWS SDK for JavaScript at:
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0