aws ec2 start/stop-instances
CautionStart/stop EC2
aws ec2 start-instances --instance-ids <id>
Starts/stops EC2 instances for cost saving or recovery.
Examples
aws ec2 stop-instances --instance-ids i-0abc123Stop an instance
Syntax
aws ec2 start-instances|stop-instances --instance-ids <id>
Before you run it
Stopping causes downtime; verify the instance id.
Related commands
- aws ec2 describe-instancesList EC2
- aws sts get-caller-identityWho am I (AWS)
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store