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.33k stars 1.73k forks source link

Add support for labels on resource_compute_interconnect_attachment #9171

Open asml-erwin-willems opened 3 years ago

asml-erwin-willems commented 3 years ago

Community Note

Description

Interconnect has support for Labels in the console, but not yet in Terraform. Would be nice if this can be added.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_compute_interconnect_attachment" "on_prem" {
  name                     = "on-prem-attachment"
  edge_availability_domain = "AVAILABILITY_DOMAIN_1"
  type                     = "PARTNER"
  router                   = google_compute_router.foobar.id
  mtu                      = 1500
  labels                  = {
        "my-label"   = "my-value"
  }
}

References

b/305377525

sanghaniJ commented 1 year ago

b/263558163

melinath commented 1 year ago

For information on adding labels fields in 5.X see https://googlecloudplatform.github.io/magic-modules/best-practices/#add-labels-and-annotations-support