Renamed an RDS, now can't fully terminate an EB instance

0

While trying to debug a database problem, I manually renamed the RDS created as part of an EB instance. I eventually wanted to tear down the EB and start over, so I ran eb terminate <env name>. I got an error talking about an inability to find the RDS under its old name, and then two more errors relating to failed security group deletions due to dependency violations. The final error reads

Stack deletion failed: The following resource(s) failed to delete: AWSEBSecurityGroup, AWSEBRDSDatabase, AWSEBLoadBalancerSecurityGroup.

How can I terminate the dangling resources and finalize the termination of the EB instance?

Edited by: nbarnes on Mar 30, 2019 1:47 PM

nbarnes
asked 5 years ago607 views
2 Answers
0
Accepted Answer

Hi nbarnes ,

Presently, the only way to terminate your environment is to first delete the underlying CloudFormation stack:

  1. Go to the CloudFormation console.
  2. From the list of stacks, find the stack that is associated with your environment.
  3. Delete the particular CFN stack.
  4. Go to the Elastic Beanstalk console.
  5. Attempt to terminate the environment.

Please let me know if this doesn't work.

Thanks,
Rahul.

AWS
answered 5 years ago
0

+1, worked like a charm. Thanks.

nbarnes
answered 5 years ago

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