You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes CI leaks untagged security groups. Because we are allowed
to remove all resources from within a cluster-owned VPC, add a ByVPC
walker to remove these indirectly-owned groups.
The default name skip avoids errors like:
time="2019-08-22T12:39:23-07:00" level=debug msg="deleting EC2 security group sg-07c2e6d7b620fb39c: CannotDelete: the specified group: \"sg-07c2e6d7b620fb39c\" name: \"default\" cannot be deleted by a user\n\tstatus code: 400, request id: c88fd74c-77c3-41fe-badb-c53e8022226d" arn="arn:aws:ec2:us-west-2:269733383066:vpc/vpc-0c9097bf5797f611b"
Without the name guard, hitting the error would cause an early exit
from deleteEC2SecurityGroupsByVPC, and mean we never progressed
further in deleteEC2VPC, leading a hung cluster teardown.
0 commit comments