
41
1 def lambda_handler(event, context):
2 content = """
3 <html>
4 <p> Hello website Lambda </p>
5 </html>
6 """
7 response = {
8 "statusCode": 200,
9 "body": content,
10 "headers": {"Content-Type": "text/html",},
11 }
12 return response
3. “Right-cli” deploy the lambda function
4. Log in to the AWS console and cli on the API Gateway icon in the AWS Lambda section. Verify
that it returns “Hello website Lambda.”
You can also follow on how to “Build a simple AWS Lambda Website” in the following screencast.
Video Link: hps://www.youtube.com/wat?v=lrr6h7YIcI8¹¹³
Instructions AWS EC2 Website
An older but still useful way to build a website is to laun a Virtual ...