# Scenario - Lambda for the SDK for JavaScript (v3)

This interactive command prompt shows you how to use the AWS SDK for JavaScript
with AWS Lambda.

For the purpose of this example, `root` refers to the same directory as this readme.

## Prerequisites

- Create an AWS account.
- Set up a [credentials file](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html).
- Configure your account (or AWS Identity and Access Management (IAM) user) with access to Lambda and IAM.
- Install `nodejs` version 18.7.0.
- Install `yarn`.

## Run the example

### Install dependencies for this example

The included setup script installs dependencies for this example,
the included Lambda functions, and a few IAM commands.

1. Run `yarn`

### ⚠️ Important

- Running this code might result in charges to your AWS account.
- Make sure you understand the pricing model for the AWS services in this example. See https://aws.amazon.com/pricing.

### Run the interactive command prompt

1. From a command prompt, change directories to `root`.
1. Run `node index.js`.
1. Type `help` and press `Enter` to see a list of commands.

# Scenario - Lambda for the SDK for JavaScript (v3)

This interactive command prompt shows you how to use the AWS SDK for JavaScript
with AWS Lambda.

For the purpose of this example, `root` refers to the same directory as this readme.

## Prerequisites

- Follow the steps for setting up [Lambda code examples for the SDK for JavaScript in Node.](../../README.md);

### Run the interactive command prompt

1. From a command prompt, change directories to `root`.
1. Run `node index.js`.
1. Type `help` and press `Enter` to see a list of commands.

Update Lambda MVP readme to fix incorrect instructions.
Update Lambda MVP readme to fix incorrect instructions.
