?? Create High Availability Architecture with AWS CLI ??
Ayush Milan
Data Scientist | GenAI | Certified Cloud Practitioner | AWS | Azure | Databricks | Technical Content Writer
??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.
So we have to create ec2 instance using aws cli(after login), At first we have to create a security group...
we check it on aws page to confirm....
Now we have to launch an ec2 instance using aws cli...
Again check on aws web page to confirm for the ec2instance ........
Let's create a EBS volume using command line....
Here we check that volume is created and available to use it ....
now we have to attach this volume to the ec2 instance...
again check that the volume is in use and attached to the ec2 instance...
Let's go inside the instance and configure webserver...
now start the httpd server ....
Now i am going to create partition ....
So, now we have done with configuration of webserver on EC2 Instance. & Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
Now I am going to create a S3 storage....
check on aws web to confirm.....
Now I am going to upload an image in the S3 bucket and allow specific permissions....
Now set up the Content Delivery Network using CloudFront and using the origin domain as S3 bucket by aws cli.......
check in the aws web cloud front to confirm .......
Now we have to go to the instance and create a web page and use the CloudFront url in the html code, for security and low latency.
At last we go to the web page and check for the result as our httpd webserver is active .....
So, This is the task we have to do on AWS CLI i.e.?? Create High Availability Architecture with AWS CLI ??.
Previously I create an article on AWS CLI Management. check it here click
Thank You.