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.32k stars 1.72k forks source link

Adding data resource for google_compute_service_attachment to get a service attachment within a specific project #17122

Open sanmaym opened 8 months ago

sanmaym commented 8 months ago

Community Note

Description

IHAC that wanted the feature added to be able to use a data source to be able to get the self link for a service attachment in a given project

New or Affected Resource(s)

google_compute_service_attachment

Potential Terraform Configuration

data "google_compute_service_attachment" "my_attachment" {
  name = google_compute_service_attachment.foobar.name
  region = google_compute_service_attachment.foobar.region
}

References

b/325031989

sanmaym commented 8 months ago

Can I work on this?