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:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.98.250