How can i get the aws lambda response as the HTML page. Please provide the step wise procedure to solve this.
You don't need Lambda to print out HTML.
Adding the HTML code:
go to your GET method -> Integration Response -> Body Mapping Templates
delete application/json (by default)
add text/html mapping
in the empty field to the right, just paste your HTML (delete anything else)
You will also need to update the content type in the Method Response:
expand 200 response
under Response Body for 200, delete application/json and add text/html with an empty model
Then just deploy your API and you're done.