during many tests, my resources weren't properly removed via the "terraform destroy" command.
I create CCE (Kubernetes cluster) with all underlying required resources, e.g. VPC and subnets.
Many times VPC couldn't be removed because of a security group "-cce-node-" existence.
This group is created during Kubernetes cluster provisioning ("The security group is created by CCE cluster") and should be removed along with this cluster.
Cluster removal is marked as done and other resources are deleted except this security group and VPC which is blocked by this group existence.
flexibleengine_cce_cluster_v3.cluster: Still destroying... [id=63da9d7a-eb78-11ee-9517-0255ac100038, 2m20s elapsed]
flexibleengine_cce_cluster_v3.cluster: Destruction complete after 2m22s
error deleting VPC 36017c68-c1e5-4f53-8c08-bb975b0682d5: timeout while waiting for state to become 'DELETED' (last state: 'ACTIVE', timeout: 3m0s
Expected Behavior
During CCE cluster removal, TF provider should verify if automatically created Security Group for CCE is also deleted before confirmation that cluster is deleted.
Actual Behavior
Mentioned security group in majority of tests remains and VPC can't be deleted.
Hello,
during many tests, my resources weren't properly removed via the "terraform destroy" command. I create CCE (Kubernetes cluster) with all underlying required resources, e.g. VPC and subnets. Many times VPC couldn't be removed because of a security group "-cce-node-" existence. This group is created during Kubernetes cluster provisioning ("The security group is created by CCE cluster") and should be removed along with this cluster. Cluster removal is marked as done and other resources are deleted except this security group and VPC which is blocked by this group existence.
Terraform Version
1.5.2
Affected Resource(s)
Terraform Configuration Files
Panic Output
flexibleengine_cce_cluster_v3.cluster: Still destroying... [id=63da9d7a-eb78-11ee-9517-0255ac100038, 2m20s elapsed] flexibleengine_cce_cluster_v3.cluster: Destruction complete after 2m22s error deleting VPC 36017c68-c1e5-4f53-8c08-bb975b0682d5: timeout while waiting for state to become 'DELETED' (last state: 'ACTIVE', timeout: 3m0s
Expected Behavior
During CCE cluster removal, TF provider should verify if automatically created Security Group for CCE is also deleted before confirmation that cluster is deleted.
Actual Behavior
Mentioned security group in majority of tests remains and VPC can't be deleted.
Steps to Reproduce
terraform apply
terraform destroy