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

Add data resource for google_compute_region_health_check #17430

Open jlenuffgsoi opened 6 months ago

jlenuffgsoi commented 6 months ago

Community Note

Description

As for the google_compute_health_check, we need the data resource for the google_compute_region_health_check resource.

Or simply add the region option to the google_compute_health_check data resource.

Or recognize automatically the region provided in the name.

New or Affected Resource(s)

Potential Terraform Configuration

data "google_compute_region_health_check" "default" {
  name = "http-hc-debug"
  region = "europe-west9"
}
data "google_compute_health_check" "default" {
  name = "http-hc-debug"
  region = "europe-west9"
}
data "google_compute_health_check" "default" {
  name = "projects/my-project/regions/europe-west9/healthChecks/http-hc-debug"
}

References

No response

b/327492354

melinath commented 6 months ago

This should likely be a separate datasource since it's a separate resource.