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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store