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

Let's Start -

Creating Instance -

No alt text provided for this image

Instance Created -

No alt text provided for this image

Creating EBS Volume -

No alt text provided for this image

Volume created-

No alt text provided for this image

Attaching EBS volume to our created instance -

No alt text provided for this image

Volume attached-

No alt text provided for this image


Configuring Webserver in our instance -

No alt text provided for this image

To use the created EBS Volume we have to do - partition , format it & mount it .

No alt text provided for this image

Creating partition-

No alt text provided for this image

Format -

No alt text provided for this image

Mounting it & Starting the HTTPD service -

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

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 -

No alt text provided for this image

S3 bucket Created -

No alt text provided for this image

Image uploaded -

No alt text provided for this image

Creating CloudFront to reduce the Latency -

No alt text provided for this image

CloudFront Created -

No alt text provided for this image

Putting the CloudFront URL in our web page -

No alt text provided for this image

Our Final Output -

No alt text provided for this image

TASK COMPLETED !

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

Nikhil Suryawanshi的更多文章

社区洞察

其他会员也浏览了