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.

已提問 1 年前檢視次數 232 次
1 個回答
1
已接受的答案

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
專家
已回答 1 年前
  • Thank you Jose for the response and you are absolutely right. Thanks!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南