I get this old issue:
* Error deleting security group: DependencyViolation: resource sg-0849cdab4d00xxx has a dependent object
How do you cope with this? How do you find the dependent object? What can it be?
04/29/2021, 1:10 PM
You’ll have to look in the aws console. That could be either an elb/alb that hasn’t been deleted or an ec2 instance that is still running that is preventing the security group from being deleted.
04/29/2021, 8:58 PM
Often if you delete the resource via the console, the error message there tells you exactly what the dependent resource is.