Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize documentation around deletion_protection, deletion_policy, force_deletion, etc #20308

Open
joe-a-t opened this issue Nov 12, 2024 · 1 comment

Comments

@joe-a-t
Copy link

joe-a-t commented Nov 12, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

  • provider registry.terraform.io/hashicorp/google v6.11.0

Affected Resource(s)

  • google_bigquery_table
  • google_bigtable_instance
  • google_bigtable_table
  • google_container_cluster
  • google_looker_instance
  • google_project
  • google_redis_cluster
  • google_spanner_database
  • google_sql_database
  • google_sql_database_instance
  • google_storage_bucket

Terraform Configuration

Debug Output

No response

Expected Behavior

Looking across all of these different docs pages linked below, there is a ton of overlap in deletion_protection, deletion_policy, prevent_destroy, force_destroy, etc. While I understand that many of these differences in the arguments are not unique to the Terraform provider and are dictated by a lack of standardization upstream in the Google APIs, I do think that the documentation and explanation on the Terraform provider docs pages should be far more standardized and clear about things like:

  • which provide deletion protection on the Google API side of things vs just the internal Terraform provider side of things
  • which types of resources are protected by this for items that have downstream resources, eg:
    • for buckets, needing to be forced to delete if they still contain objects
    • for looker, what are the types of nested resources that prevent deletion? Does it prevent deletion of anything associated with the looker instance or just certain resources like the instance itself?
  • what the defaults are
  • what true and false mean
  • for the ones that have string values instead of bools, what the values mean
  • etc

Actual Behavior

Right now, all of the above expectations are very inconsistent across the various resources. Some resources have great documentation and are really clear on all those fronts and others are extremely vague and hard to decipher.

Also, there are likely other resources with this same problem that I did not flag when opening this issue, my search was not comprehensive.

Steps to reproduce

  1. Look at the provider documentation

Important Factoids

No response

References

@joe-a-t
Copy link
Author

joe-a-t commented Nov 13, 2024

Also possibly related once the documentation not being generated issue is fixed #20328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment