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
posta 5 anni fa617 visualizzazioni
2 Risposte
0
Risposta accettata

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
progfan
con risposta 5 anni fa
0

+1, worked like a charm. Thanks.

nbarnes
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande