This is an episode of the educational video series 'AWS By Doing' wherein you can learn AWS Cloud Computing by following along with an AWS certified Solutions Architect. Expect new episodes every Monday and Thursday! This is a hands-on lab on: API Gateway AWS API Gateway Create a "Hello, World!" Lambda function Test the Lambda function Create a "Hello, World!" API with Lambda proxy integration Deploy the API in the API Gateway console Test the API with a browser Test the API with the curl command Delete all created resources Please give a thumbs up to this video to encourage us and share this video with your friends and colleagues! Also, subscribe to this channel 'AWS By Doing' and we will update you regularly with our LATEST and GREATEST offerings! Write in a comment of what you liked and how we can improve! Link to our Playlist: • AWS Labs | Intro to AWS By Doing We acknowledge and thank the official AWS Documentation material which we have used to produce this educational video. Link to AWS documentation: https://docs.aws.amazon.com/apigatewa... Commands/Code Snippets: //LambdaProxyIntegration Function Begin--------------------------- //replace ] with greater than 'use strict'; exports.handler = async (event) =] { let name = "you"; let city = 'World'; let time = 'day'; let day = ''; let responseCode = 200; if (event.queryStringParameters && event.queryStringParameters.name) { name = event.queryStringParameters.name; } if (event.queryStringParameters && event.queryStringParameters.city) { city = event.queryStringParameters.city; } if (event.headers && event.headers['day']) { day = event.headers.day; } if (event.body) { let body = JSON.parse(event.body) if (body.time) time = body.time; } let greeting = `Good ${time}, ${name} of ${city}.`; if (day) greeting += ` Happy ${day}!`; let responseBody = { message: greeting, input: event }; let response = { statusCode: responseCode, headers: { "x-custom-header" : "my custom header value" }, body: JSON.stringify(responseBody) }; console.log("response: " + JSON.stringify(response)) return response; }; //LambdaProxyIntegration Function End--------------------------- //Sample event for LambdaProxyIntegration function: Begin----- { "queryStringParameters" : { "city" : "Seattle", "name" : "John" }, "headers" : { "day" : "Thursday" }, "body" : "{ \"time\" : \"evening\" }" } //Sample event for LambdaProxyIntegration function: End--- Download and install curl for your Operating System at: https://curl.haxx.se/download.html All Links/Commands/Code Snippets are available in the Description To test the deployed API: URL to test GET requests using only query string parameters from a browser's address bar: https://Api-Id.execute-api.Region.ama... Using curl command From a Windows terminal: curl -v -X POST "https://Api-Id.execute-api.Region.ama..." -H "content-type: application/json" -H "day: Thursday" -d "{ \"time\": \"evening\" }" curl -v -X GET "https://Api-Id.execute-api.Region.ama..." -H "content-type: application/json" -H "day: Thursday" Using curl command From a Linux/Mac terminal: curl -v -X POST \ 'https://Api-Id.execute-api.Region.ama... \ -H 'content-type: application/json' \ -H 'day: Thursday' \ -d '{ "time": "evening" }' curl -X GET \ 'https://Api-Id.execute-api.Region.ama... \ -H 'content-type: application/json' \ -H 'day: Thursday'