Invoking get-user function

Remember to update the function name and the id of user with Nguyen Van Dong name.

  1. Run

    aws lambda invoke \
        --function-name arn:aws:lambda:ap-southeast-1:971422684006:function:get-user \
        --cli-binary-format raw-in-base64-out \
        --payload '{ "id": "6c539686-de1c-4bef-85ef-f68a4b5aabe0" }' \
        response.json
    
  2. Check the response

    cat response.json
    
    {"statusCode": 200, "headers": {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"}, "body": "{\"updated_at\": \"2025-05-14T10:07:42\", \"created_at\": \"2025-05-14T10:07:42\", \"id\": \"6c539686-de1c-4bef-85ef-f68a4b5aabe0\", \"email\": \"nguyenvandong@gmail.com\", \"name\": \"Nguyen Van Dong\"}"}%
    

    alt text