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.

질문됨 일 년 전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
전문가
답변함 일 년 전
  • Thank you Jose for the response and you are absolutely right. Thanks!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠