Menu
AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

Packer Instance Cleanup

In certain circumstances, such as killing the Packer builder process before it has finished, instances launched by Packer are not cleaned up. These instances are not part of the Elastic Beanstalk environment and can only be viewed and terminated using the Amazon EC2 service.

To manually clean up these instances

  1. Open the https://console.aws.amazon.com/ec2/

  2. Make sure you are in the same region in which you created the instance with Packer.

  3. Under Resources select N Running Instances, where N indicates the number of running instances.

  4. Click in the query text box.

  5. Select the Name tag.

  6. Type packer.

    The query should look like: tag:Name: packer

  7. Select any instances that match the query.

  8. If the Instance State is running, select Actions, Instance State, Stop, then Actions, Instance State, Terminate.