?? Create High Availability Architecture with AWS CLI ??
Nikhil Suryawanshi
MLOps Engineer | 7x GCP | Kubernetes | Terraform | AWS | DevOps | Java | Python
??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.
Let's Start -
Creating Instance -
Instance Created -
Creating EBS Volume -
Volume created-
Attaching EBS volume to our created instance -
Volume attached-
Configuring Webserver in our instance -
To use the created EBS Volume we have to do - partition , format it & mount it .
Creating partition-
Format -
Mounting it & Starting the HTTPD service -
To store the Images, video in our webpage we can use object storage .
AWS provide S3 bucket as a object storage .
Creating S3 bucket-
Making it public -
Uploading image in the S3 bucket-
Making it public -
S3 bucket Created -
Image uploaded -
Creating CloudFront to reduce the Latency -
CloudFront Created -
Putting the CloudFront URL in our web page -
Our Final Output -
TASK COMPLETED !