Delete EKS Node Group failed due to Security Group Dependency


I created a node group and specified a wrong security group, which was used by other resources. As a result, when I delete the node group through eksctl or AWS console, I got deletion failure due to:

Ec2SecurityGroupDeletionFailure DependencyViolation - resource has a dependent object

Is it possible to delete this node group while keeping the security group, please?

Thank you for your answers in advance

1 Answer

the security group will not delete. delete node group manually.

profile picture
answered 2 years ago
  • I understand the security group will not delete. I want to keep the SG. The problem is, when deleting node group manually, the EKS throws error "delete failed". And the failure is caused by the SG is using by other nodes.

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