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

Adding support for global application in Apphub #19252

Open eshagoel06 opened 2 weeks ago

eshagoel06 commented 2 weeks ago

Community Note

Description

Now Apphub supports global application. So we need to update the existing terraform resource to support that.

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_apphub_application" "example" {
  location = "global"
  application_id = "global-application-example"
  scope {
    type = "GLOBAL"
  }
}

References

No response

b/362512612

melinath commented 2 weeks ago

Note from triage: It looks like this probably just requires updating the scope.type field to allow the value GLOBAL

eshagoel06 commented 2 weeks ago

Right. Also there's validation to be added to ensure location and scope type are compatible with each other.