Open the Functions section of Lambda console
Click create-user function.
Open the Test tab
In the Test event section,
Event name: Fill in create-user-event
Event JSON: Replace the placeholder event with
{
"email": "nguyenvanan@gmail.com",
"name": "Nguyen Van An"
}
Click Save

Click Test
In the Execution functions banner, click Details.

You can check the response of the Lambda function and information about the execution of the Lambda function

Verify that a new user is created in DynamoDB table UsersTable
Explore items page of the DynamoDB management console.UsersTable table
Invoke the create-user Lambda function in this step with different Event JSON to create some more users:
{
"email": "nguyenvanbinh@gmail.com",
"name": "Nguyen Van Binh"
}
{
"email": "nguyenvancanh@gmail.com",
"name": "Nguyen Van Canh"
}
{
"email": "nguyenvandong@gmail.com",
"name": "Nguyen Van Dong"
}
{
"email": "nguyenvanem@gmail.com",
"name": "Nguyen Van Em"
}
After invoking the create-user Lambda function with these 4 events, you should have 5 users.
Open the Explore items page of the DynamoDB management console.
Select the UsersTable table
Click Refresh button
Verify that there are 5 items in the DynamoDB table.
