Why Deleted EC2 instance keeps returning

0

Points of My Scenario:

  1. I deleted an EC2 instance and it returned with a different GUID.
  2. I then deleted the AMI image I had built to create the EC2 instance, but AWS again found a way to create and run a new EC2 instance
  3. I then deleted all snapshots and volumes, and yet again, AWS found a way to create and run yet another EC2 instance.
  4. REQUEST: Since I am being forced to spend money, please help me stop the return of these unwanted, auto-creating EC2 instances.
asked a year ago264 views
1 Answer
0
Accepted Answer

Are the instances part of an EC2 Autoscaling group? If so, you would see Tags named "aws:autoscaling:groupName" on the instances.

EXPERT
answered a year ago
  • No: there is no autoscaling group. Thanks for asking.

  • Have a look in CloudTrail at the RunInstances events creating the EC2 instances, it might give the info you need to work out how they're being launched.

  • @skinsman (and everybody). thanks for getting me closer to the issue. See CloudTrail info on the latest-new mystery instance (I deleted all previous 'ghost' instances) below: CloudTrail reveals (and mystifies) with the following info: 1. Username = InstanceLaunch 2. Source IP = spot.amazonaws.com 3. User agent = spot.amazonaws.com, also 4. Resource Types: VPC, Ami, NetworkInterface, EC2-instance, KeyPair, SceurityGroup, and subnet Hopefully the above data provides a clue that can lead me to the answer. Any further thoughts (anyone)?

  • I found a load balancer that I created as a demo to study. I believe this is the problem. I will delete it and see what happens.

  • Alas! Unfortunately, deleting the Load Balancer (along with its empty Target group) and terminating the 'ghost' EC2 instance did not resolve the issue: a new 'ghost' EC2 instance was launched 1 hour and 40 minutes after terminating the previous 'ghost' EC2 instance! I'm being forced to spend money. Lol!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions