Create High Availability Architecture With AWS CLI

In this article you will see how to use AWS by the command line

What is Cloud Front?🤔🤔

What is Amazon S3?🤔🤔

Lets , start Practical …

  1. first Launch Ec2 Instance By ClI :
> aws ec2 run-instances — image-id ami-081bb417559035fe8 — instance-type t2.micro — security-group-ids sg-0ac9d9eddb7112a21 — key-name MYKEY
>aws ec2 create-volume — availability-zone ap-south-1a — size 1

3) Now attach volume with ec2 instance :

>aws ec2 attach-volume — device /dev/sdf — instance-id i-0c9a5b2a63562a902 — volume-id vol-012ee3948957fade1
> mount /dev/xvdf /var/www/html
> yum install httpd>systemctl start httpd
> aws s3api create-bucket — bucket climybucket — region ap-south-1 — create-bucket-configuration LocationConstraint=ap-south-1
>aws cloudfront create-distribution — origin-domain-name



Technology Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store