Invoking update-user function

  1. Open the AWS Lambda functions management console

  2. Click update-user function.

  3. Open the Test tab.

  4. In the Test event section,

    • Event name: Fill in update-user-event

    • Event JSON: Replace the placeholder event with id of user with Nguyen Van An name but with new email and name.

      {
        "id": "18d35ef6-a7ae-415b-a97d-34dc069a840d",
        "email": "nguyenvananh@gmail.com",
        "name": "Nguyen Van Anh"
      }
      

Replace the user id with yours, you can get it in the DynamoDB Explorer items or in the response after invoking list-users.

  1. Click Save

  2. Click the Test button.

    alt text

  3. Verify that the user is updated.

    • Open the Explore items page of the DynamoDB management console.

    • Click refresh.

    • Verify that:

      • Nguyen Van An is updated to Nguyen Van Anh
      • nguyenvanan@gmail.com is updated to nguyenvananh@gmail.com

      alt text