In some cases, deleting a security group on AWS will fail because the security group is still seen as attached to the EC2 instance.
Make sure that the EC2 instance is deleted properly, before we delete the security group.
2018/12/21 13:51:14 Error while deleting node bf-402p3jud DependencyViolation: resource sg-0fc9f93189d373a71 has a dependent object
status code: 400, request id: 041e74c7-70b6-4a2e-8d11-e3dc11640271
In some cases, deleting a security group on AWS will fail because the security group is still seen as attached to the EC2 instance.
Make sure that the EC2 instance is deleted properly, before we delete the security group.