Why do I have running EC2 instances that I didn't launch?
3 minute read
I have instances running in the Amazon Elastic Compute Cloud (Amazon EC2) console that I don't remember launching, and I want to remove them.
Determine whether another AWS service or an authorized user on your AWS account launched the Amazon EC2 instances.
Determine whether another AWS service launched the instances
You can configure some AWS services to launch EC2 instances as part of their function. The following list includes some services that commonly launch instances. Check these services to determine whether they launched any instances:
AWS Elastic Beanstalk: Elastic Beanstalk environments include EC2 instances and Auto Scaling rules by default. Depending on their configuration, an environment's Auto Scaling rules might launch instances. For more information, see What Is Elastic Beanstalk? To terminate an environment and all its resources, see Terminate an Elastic Beanstalk environment.
AWS OpsWorks: AWS OpsWorks stacks can launch groups of AWS resources according to the instructions in the stack's cookbook. If you launch an OpsWorks stack, then the cookbook might be configured to launch EC2 instances as part of the stack. To terminate the resources that are associated with a stack, delete the stack.