Unable to delete AWS Elastic Beanstalk Environment “resource XX-XXXXXXX has a dependent object”
Problem
You will usually get this error when you are trying to delete an Elastic Beanstalk environment.
Solution
As the message in the Events log states, the security group of your Elastic Beanstalk’s environment’s ec2 instance is being referenced in another security group. (This is usually done to allow the ec2 instance to have access to another AWS service.) In this case the security group is referenced in our AWS RDS security group, the deletion works right after removing the reference.
0 Comments