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-1234567890abcdef0running → stopping → stopped.
$ aws ec2 start-instances --instance-ids i-1234567890abcdef0Start it again.
Learn it in: EC2 basics · Official docs