Before doing the main content of this workshop, we prepare the services and data for the application.
Download the source code of the SAM project below.
Unzip and go to the root directory of fcaj-book-shop project. Run the below commands.
Ensure you have the AWS CLI and SAM CLI installed on your machine, configure AWS credentials before running the commands.
```bash
sam build
sam validate
sam deploy --guided
```
Enter the following content. Leave as default.
fcaj-book-storeus-east-1




To add data to the table, you can download the file below:
Open this file, replace all <AWS-REGION> with the region where you created the S3 book-image-resize-shop-by-myself bucket, for example: us-east-1.

Run the following command in the directory where you save the dynamoDB.json
aws dynamodb batch-write-item --request-items file://dynamoDB.json
