hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

The Dataplex Zone resource create a dataset, but don't have any argument to destroy this dataset. #12842

Open fabiokfouri opened 1 year ago

fabiokfouri commented 1 year ago

The Dataplex Zone resource create a dataset, but don't have any argument to destroy this dataset. https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dataplex_zone

When is necessary a rebuild, the Terraform fail because the dataset already exists.

I think that would be great to implement something or a feature like delete_contents_on_destroy. This feature exisits in google_bigquery_dataset (https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/bigquery_dataset)

Affected Resource(s)

b/321386263

melinath commented 8 months ago

This might make sense to implement as a deletion_policy field that defaults to ABANDON to match the current behavior.

I don't see a way to actually trigger this deletion on the API side, which would be a prerequisite.