π° Create High Availability Architecture with AWS CLI π°
π The architecture includes-
- Webserver configured on EC2 Instance
- Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
- Static objects used in code such as pictures stored in S3
- Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket.
- Finally place the Cloud Front URL on the webapp code for security and low latency.
Step 1: β Create a security group
Step 2: β Add inbound rule in security group
Step 3: β Create a new key pair
Step 4: β Launch an instance on ap-south-1 with the help of created security Grp and key pair
Step 5: β Create a new Volume type EBS on ap-south-1a
Step 6: β Attach EBS with the instance so we put dynamic content(code) in it
Step 7: β Login into Instance with the help of SSH protocol
Step 8: β Create partition in the created EBS
Step 9: β Format partition for get an inode table
Step 10: β Install httpd for host our website or web page
Step 11: β Create S3 bucket for storing the static data in it like image, pdf and videos etc.
Step 12: β Upload files in S3 bucket from the local storage
Step 13: β Setting up Content Delivery Network using CloudFront and using the origin domain as S3 bucket
Step 14: β Mount the EBS with the default documents directory of Apache webserver ( /var/www/html )
Step 15: β Go into /var/www/html directory and create an html program βindex.htmlβ
Step 16: β Start the services of httpd
Final Output
Thank you