Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I terminated an AWS EC2 instance because I incorrectly created it. I've read that this deletes an instance, but it keeps reinstantiating itself. How do I permanently and fully remove the EC2 instance as though it had never existed?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

If it's reinstantiating itself then you've probably got it in an auto-scaling group. Delete that auto-scaling group (or reduce the minimum instance count to zero).

share|improve this answer
    
That was it! Thanks! –  Dylan Knowles Aug 1 at 20:35

It depends on how the instance was created in the first place.

If the instance was created with OpsWorks, then please see:

http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-delete.html

Otherwise, have a look please make sure that

 DeleteOnTermination

is set to true. More documentation about this can be found at:

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html

towards the bottom of the page.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.