niallthomson/tanzu-playground

Error on destroy: Resource cannot be deleted because it is not empty

Opened this issue · 1 comments

This error tends to happen on GCP modules:

Error: Error reading ManagedZone: googleapi: Error 400: The resource named 'somezonename' cannot be deleted because it is not empty, containerNotEmpty

This is because external DNS doesn't seem to have time to clean up its records before its terminated, and GCP does not support forceful DNS zone deletion.

Open the DNS zone in the Google Cloud console, manually delete the records and re-run destroy.

Should be fixed, leaving open for tracking