- First we need to create VPC, Be'coz in organization there can be other projects as well
- Ex: In one AWS account there can be mulitple projects, To keep your project secure from other projects
- Better to keep a defined VPC with CIDR block range like 172.16.0.0/16
- Now based on the application as we have 3 tier application, We have to create 3 subnets -- 3 private subnets
- private subnets for frontend, backend and db
- we use AWS managed DB RDS using it we can create mysql
- In private subnet front-end we will use an auto scaling group and by using auto scaling group we will create APPLICATION in ec2 instances
- The reasons for creating auto-scaling groups can create our application in different ec2 instances it can SCALE up SCALE Down and put these instances in differenet avaialblity zones as well.
- This AutoScaling grups deploy our application in 2 differennt instances (we mentioned 2 in ASG) like one is us-east-1a and us-east-1b
- similarily we have ASG for backend as well
- We will create a Primary RDS and Secondary RDS, the reason is if something happens to this DB all our information should not be lost(secondary for backup)
- When USER tries to send a request users requests would ideally go to ROUTE 53 FROM the ROUTE53 if we are using any CDN the request will do to CDN from there it will go to LOAD BALANCER/ eLASTIC LOAD BALANCER.
- In generally there will be APPLICATION LOAD BALANCER or we can consider any ELASTIC LOAD BALANCER is available in any public PUBLIC SUBNET
- From the ELB the request would go ONE OF THESE EC2 instances
- From the EC2 instances it will go to APPLICAITON LOAD BALANCER the request will go to EC2 instances
- From there the request will go to PRIMARY RDS FROM THERE response will come to BACKEND and from there to FRONT END
- User will ger the response
- Now many of the organizations are moving to SERVERLESS architecutre or KUBERNETTES architecture
- If job description required containers then explain or use EKS Architecture
- If the JD requires knowledge of applications on EC2 instances then we can explain this 3 tier architecture model
REF LINE 1: https://aws.plainenglish.io/building-your-first-kubernetes-application-with-aws-eks-bc2f1e84118 REF LINK 2 : https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/deploy-a-sample-java-microservice-on-amazon-eks-and-expose-the-microservice-using-an-application-load-balancer.html


