Ravindra BagaleCourses & study guides मराठी Track your progress

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.

Launch EC2 from the CLI You need the same server again and again. Clicks forget a setting. run-instances creates instances from AMI, type, key, SG and subnet. Get the AMI from SSM, add tags, then wait instance-running. Verify with describe-instances --query PublicIpAddress.
Launch EC2 from the CLI · Download PNG
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.

See all AWS revision cards