Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
The `AWS SDK for JavaScript v2 Developer Guide <https://docs.aws.amazon.com/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 <https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javascriptv3/example_code/>`_ folder in this repo.
- AWS SDK for JavaScript downloaded and extracted somewhere on your machine
- AWS credentials in a shared credentials file
Running the examples
====================
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 <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 <https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html>`_