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.

posta un anno fa232 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta un anno fa
  • Thank you Jose for the response and you are absolutely right. Thanks!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande