Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I ran shutdown from within an ssh session but my instance still shows up as running when I query it with DescribeInstances and I can shell into it. Whats happening?

0
Posted

I ran shutdown from within an ssh session but my instance still shows up as running when I query it with DescribeInstances and I can shell into it. Whats happening?

0

This is a “feature” of the shutdown command. If you issue shutdown without a -h (halt) flag it shuts down the network and switches to single user mode. The instance is still running but without a network. You should always use shutdown -h when working inside an Amazon EC2 instance. You can shut the instance down using the TerminateInstances call (ec2-terminate on the command line).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123