Ravi Sir's Cards › AWS
Launch EC2 from the CLI
What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.
Read card text
What this card says
Why do we need it?
You need the same server again and again. Clicks forget a setting.
What is it?
run-instances creates instances from AMI, type, key, SG and subnet.
aws ec2 run-instances
How to do it
Get the AMI from SSM, add tags, then wait instance-running.
Example
Verify with describe-instances --query PublicIpAddress.