Ad space (banner)
AD

Got the fundamentals? A structured AWS course is a fast way to level up.

Find AWS courses on Udemy

Affiliate link. Costs you nothing extra.

☁️AWS Lessons
Lesson 27 / 41

Restarting an Instance with aws ec2 start-instances

When you want a stopped server back, use aws ec2 start-instances. It starts the instance again, with its disk contents intact.

The syntax is aws ec2 start-instances --instance-ids id.

Running it transitions the instance from stopped to pending, and it is usable shortly after.

A common stumble is finding the public IP address has changed. Stopping and starting reassigns it unless you attached an Elastic IP.

In real work, it pairs with stop for the scheduled shutdown of non-production environments.

AWS
Try it (type this into the pseudo terminal)
aws ec2 start-instances --instance-ids i-0123456789abcdef0

🧑‍💻 You can type this command into the AWS pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)