amazon-web-servicesamazon-ec2aws-devops

Why EC2 new instance is created when I try to terminate it?


Good morning, I had a free tier EC2 instance, now I want to stop it and delete it. The problem is that when I am trying to terminate running EC2 Instance, then AWS terminates it but it creates new one (same as terminated). How can I fully terminate and delete AWS EC2 instance?

enter image description here

As you can see it should delete on termination: enter image description here


Solution

  • The "Delete on Termination" flag is for the volume attached to the instance which indicates whether you want to keep the storage after terminating your ec2-instance.

    The only way I think of here is where the ec2-server is attached to auto-scaling group with min =1, you need to check the auto-scaling group and decrease the min to : 0