?? Create High Availability Architecture with AWS CLI ??

?? 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.

So we have to create ec2 instance using aws cli(after login), At first we have to create a security group...

No alt text provided for this image

we check it on aws page to confirm....

No alt text provided for this image

Now we have to launch an ec2 instance using aws cli...

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Again check on aws web page to confirm for the ec2instance ........

No alt text provided for this image

Let's create a EBS volume using command line....

No alt text provided for this image

Here we check that volume is created and available to use it ....

No alt text provided for this image

now we have to attach this volume to the ec2 instance...

No alt text provided for this image

again check that the volume is in use and attached to the ec2 instance...

No alt text provided for this image

Let's go inside the instance and configure webserver...

No alt text provided for this image
No alt text provided for this image

now start the httpd server ....

No alt text provided for this image

Now i am going to create partition ....

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

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....

No alt text provided for this image

check on aws web to confirm.....

No alt text provided for this image

Now I am going to upload an image in the S3 bucket and allow specific permissions....

No alt text provided for this image
No alt text provided for this image

Now set up the Content Delivery Network using CloudFront and using the origin domain as S3 bucket by aws cli.......

No alt text provided for this image
No alt text provided for this image

check in the aws web cloud front to confirm .......

No alt text provided for this image
No alt text provided for this image

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 .....

No alt text provided for this image

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.

要查看或添加评论,请登录

Ayush Milan的更多文章

社区洞察

其他会员也浏览了