I stopped a m5.large instance but it keeps starting back up

0

Hi... I would like to keep the cost down during development so I am stopping the EC2 instances at the end of the day. However, the instance keeps starting back up by itself. The EC2 instance was created during a Cloud 9 environment creation. I ran a simple streamlit app there, installed langchain packages, very simple. AutoScaling is not configured. Stop protection is not enabled.

Any idea how what causes this behaviour? Thanks.

asked 10 months ago218 views
1 Answer
1
Accepted Answer

Hi there.

It looks like Cloud9 is managing the instance. Per the documentation:

WS Cloud9 creates an EC2 environment and a new Amazon EC2 instance, and connects the environment to this instance. AWS Cloud9 manages the lifecycle of this instance, including starting, stopping, and restarting the instance as needed. If you ever delete this environment, AWS Cloud9 automatically terminates this instance.

I haven't tried it myself, but my best guess is that you won't be able to just stop it. It looks like you will need to delete your Cloud9 environment to terminate the instance.

Alternative options (note these may not work):

  • Use AWS Instance Scheduler and setup a schedule to start/stop the instance.
  • If you use CodeCatalyst, you can stop the environment with the steps described in this article.

I hope this helps.

profile pictureAWS
EXPERT
answered 10 months ago
  • Thank you Jose for the response and you are absolutely right. Thanks!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions