Belajar Sendiri

Commands

aws ec2 stop-instances --instance-ids

aws ec2 stop-instances --instance-ids <id>

Risk: Careful

What it does

Pauses a server. Compute stops billing; its disks and Elastic IPs do not.

When to use it

To pause a server you will use again. Data in memory is lost.

Example

$ aws ec2 stop-instances --instance-ids i-1234567890abcdef0

running → stopping → stopped.

$ aws ec2 start-instances --instance-ids i-1234567890abcdef0

Start it again.