Google Data catalog Taxonomy

This page shows how to write Terraform for Data catalog Taxonomy and write them securely.

google_data_catalog_taxonomy (Terraform)

The Taxonomy in Data catalog can be configured in Terraform with the resource name google_data_catalog_taxonomy. The following sections describe 1 example of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L8
resource "google_data_catalog_taxonomy" "my_taxonomy" {
  provider = google-beta
  region = var.region
  display_name =  var.taxonomy_display_name
  description = var.taxonomy_description
  activated_policy_types = [var.taxonomy_activated_policy_types]

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • display_name - (Required) User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.

  • description - (Optional) Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description.

  • activated_policy_types - (Optional) A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list. Each value may be one of POLICY_TYPE_UNSPECIFIED and FINE_GRAINED_ACCESS_CONTROL.

  • region - (Optional) Taxonomy location region.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format [[name]]

  • name - Resource name of this taxonomy, whose format is: "projects/[project]/locations/[region]/taxonomies/[taxonomy]".

Explanation in Terraform Registry

A collection of policy tags that classify data along a common axis.

Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources. To get more information about Taxonomy, see:

Frequently asked questions

What is Google Data catalog Taxonomy?

Google Data catalog Taxonomy is a resource for Data catalog of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Data catalog Taxonomy?

For Terraform, the maximilianobarriosn/Big_Data source code example is useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.