High-level steps to setup Serverless WebApplication using API Gateway & Lambda
- Create LambdaFunction with content from BasicLambda.py code, create a new role with `Simple Micro Services` permission and add API Gateway Trigger
- Create & Configure API Gateway GET Method to invoke BasicLambda.py
- Create S3 Bucket, make its objects public, convert it to a static website.
- upload error.html & index.html to S3 bucket created in #3, make these objects public
- Launch the S3 Static Website URL to see the web application is working
- Copy StopRunningInstances.py code to replace existing Lambda Function
- Add `AmazonEC2FullAccess` Lambda Execute Role created in #1
- Create one or more EC2 instances with tag name `AutoOff` with the value `yes` (case sensitive)
- Launch the S3 Static Website URL to test the running EC2 instances with the tag AutoOff=yes are shutdown.
Serverless WebApp Build - Use Case 1
Serverless WebApp Build - Use Case 2
Serverless WebApp Build - Use Case 3 - DIY
No comments:
Post a Comment