GoogleCloudPlatform / reliable-app-platforms

A MVP of a platform for delivering reliable applications on Google Cloud
Apache License 2.0
5 stars 5 forks source link

GKE teardown with terraform destroy fails #30

Closed MKand closed 1 month ago

MKand commented 5 months ago

When running the destruction pipeline (./build --terraform --destory), the GKE module fails at the end after the clusters are destroyed. This is because of a GKE hub "feature" that prevents destroy. Not sure which feature it is.

stevemcghee commented 1 month ago

On version 5.0.0+ of the provider, you must explicitly set deletion_protection = false and run terraform apply to write the field to state in order to destroy a cluster.

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster

stevemcghee commented 1 month ago

i believe this is working now?