This repository shows how we can deploy a serverless webapp in Aws
📌 AWS account
📌 Basic knowledge of Linux
📌 Python lamda
-🌍 Amazon CloudFront
-🌐 Amazon Route 53
-💻 Amazon Lambda
-⚖️ Amazon s3
-🪪 Amazon Certificate Manager
-🗄️ Amazon Dynamo DB
-☁️ Amazon VPC
-🔐 Amazon WAF
-👁️ Amazon CloudWatch
-🌉 Amazon API Gateway
In the traditional server architecture you need to manage server maintaince , updates, os patching and everything in your server is maintained by you. But serverless architecture demonstrates a modern, scalable web application built entirely on AWS managed services, eliminating the need for server management. Serverless architecture means building and running applications without managing servers. You still write code, but AWS handles the infrastructure—scaling, patching, provisioning—automatically.
##steps
To host our webapp we need a domain name. so in the aws domain registration we buy a domain name "coffeeshopbean.com". Route53 routes trsffic across the every edge locations in the world through the cloudfront.
Amazon CloudFront is a global content delivery network (CDN) service that significantly enhances the performance and reliability of web content delivery. It works by caching content in strategically located servers known as edge locations, which are distributed worldwide. When a user requests content, CloudFront routes the request to the nearest edge location, ensuring low latency and high transfer speeds. so we created a distribution for our domain in the cloudfront.
we need secure our application outside of aws mean in the internet. For this we request SSL/TLS certificate that routes our traffic in a secure network preventing from outsiders without exposing. we created a certificate for our domain in the AWS certificate manager.
Lambda function is used to invoke a container for our application when request came. By using lambda we don't need to manage servers and there is auto scaling. In lambda there is pay-per-request pricing only.
The application files of our application will be stored in the s3 buckets in the form of objects.
Api gateeway is used to trigger the lambda funtion and and handles requests and responses from the route53.This gateway invokes the lambda through the user request.