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 `advanced_machine_features.performance_monitoring_unit` for instance and templates #20353

Closed modular-magician closed 1 week ago

modular-magician commented 1 week ago

related to b/319565227

There is a problem with the API on this field because it only works on C4 instances but the API errors are not reflecting that when the machine type is wrong. Pending to be fixed. Other than that this works and here is a terraform implementation

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

compute: `google_compute_instance`, `google_compute_instance_template` and `google_compute_region_instance_template` now support `advanced_machine_features.performance_monitoring_unit`

Derived from https://github.com/GoogleCloudPlatform/magic-modules/pull/12281