Create a High Availability Architecture Using AWS CLI

aws ec2 create-volume --availability-zone <zone> --size <size-in-GB>  
--tag-specifications ResourceType=volume,Tags[{Key="key",Value="value"}]
aws ec2 run-instances --image-id <ami-id> --instance-type <type>   
--key-name <name> --subnet-id <id> --security-group-ids <sg-id> --count 1
aws attach-volume --volume-id <volume-id> --instance-id <instance-id>
aws s3api create-bucket --acl <rule> --bucket <name> 
--create-bucket-configuration LocationContraint=<zone>
aws s3 cp <image/file> s3://<name-of-bucket>/<name-of-file> 
aws cloudfront create-distribution --origin-domain-name <s3-bucket-url> --defaualt-root-object <name-of-file>

--

--

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