Skip to Content
Learning AWS IoT
book

Learning AWS IoT

by Agus Kurniawan
January 2018
Intermediate to advanced
278 pages
5h 13m
English
Packt Publishing
Content preview from Learning AWS IoT

Testing the AWS Lambda function

After we have created the AWS Lambda function, we should test it before releasing it to the public. Proceed with the steps as following:

  1. Click on the Test button to create the test scenario and you will get a screen as shown in the following screenshot:
  1. For the testing scenario, we create a data sample for testing by writing the following script:
{ "msg": "this is testing"}

Save this test. 

  1. Then we try to perform this testing by clicking on the Test button. If our testing is successful, we will get a positive response with a green check symbol. You can see my program output in the following screenshot: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson

Publisher Resources

ISBN: 9781788396110Supplemental Content