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.

feita há um ano232 visualizações
1 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há um ano
  • Thank you Jose for the response and you are absolutely right. Thanks!

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas