Open DynamoDB console, then click Create table

Enter table name: Books

Scroll down to Table settings section

Select On-demand for Read/write capacity settings

Configure local secondary index:

Scroll down and click Create table

Wait for table creation to complete

Download the data file below: dynamoDB.json
Open the file and replace all <AWS-REGION> with your region (e.g., ap-southeast-1)

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

So we have created the Books table with the Local secondary index of name-index and imported sample data.