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.36k stars 1.75k forks source link

Support is_publicly_readable in the google_data_catalog_tag_template #12894

Open vbambuch opened 2 years ago

vbambuch commented 2 years ago

Community Note

Description

Hey all,

the current implementation of google_data_catalog_tag_template doesn't support creation of public Tag templates. The REST API exposes the isPubliclyReadable attribute which is missing in the TF module.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_data_catalog_tag_template" "basic_tag_template" {
  tag_template_id = "my_template"
  region = "us-central1"
  display_name = "Demo Tag Template"
  is_publicly_readable = true

  fields {
    field_id = "source"
    display_name = "Source of data asset"
    type {
      primitive_type = "STRING"
    }
    is_required = true
  }

  force_delete = "false"
}

References

b/299600748

melinath commented 1 year ago

Marking this as upstream because the field is only supported in the GA API. We can only support fields that are also present in the beta API (unless there isn't a beta API).

b/262781525