Remember to update the function name and the id of user with Nguyen Van Dong
name.
Run
aws lambda invoke \
--function-name arn:aws:lambda:ap-southeast-1:971422684006:function:delete-user \
--cli-binary-format raw-in-base64-out \
--payload '{ "id": "6c539686-de1c-4bef-85ef-f68a4b5aabe0" }' \
response.json
Check the response
cat response.json
{"statusCode": 204, "headers": {"Content-Type": "application/json", "Access-Control-Allow-Origin": "*"}}%
To verify that the user is no longer existed, you can
list-users
again.