Next: Configuring the SDK for JavaScript (1), Previous: Command Line Interface---Getting Started, Up: Getting Started Resource Center [Index]
https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-started-nodejs.html
This Node.js code example shows:
The example shows how to set up and run a simple Node.js module that creates an Amazon S3 bucket, then adds a text object to it.
Because bucket names in Amazon S3 must be globally unique, this example
includes a third-party Node.js module that generates a unique ID value that you
can incorporate into the bucket name. This additional module is named uuid
.
To set up and run this example, you must first complete these tasks:
awsnodesample
. Note that the directory must be created in a
location that can be updated by applications. For example, in Windows, do
not create the directory under "C:Files".
• Step 1---Configure Your Credentials | ||
• Step 2---Create the Package JSON for the Project | ||
• Step 3---Install the SDK and Dependencies | ||
• Step 4—Write the Node.js Code | ||
• Step 5---Run the Sample |