Closed rkrv-capco closed 6 days ago
I am experiencing the same issue with the resource google_compute_instance_from_template
and google_compute_instance_group_manager
. It seems to be related to an issue with the API given back the name of the resourcePolicy
instead of the complete id. This is the other issue talking about the same:
https://github.com/hashicorp/terraform-provider-google/issues/9260
Is there any workaround here to be able of attach the resource policies to the disks?
This is a proposal to add a new argument supported for the boot_disk to manage the resource policies
Working on a pr supporting disk resource policies on instance
Community Note
Description
When a boot disk (persistent type) is created along with the VM instance, it is not possible to apply resource_policy(for example attaching snapshot_policy) to the disk resource.Currently, I have to manually configure the snapshot policy for the persistent boot disks on GCP.
Terraform Version
Terraform v0.14.8
New or Affected Resource(s)
google_compute_instance
Potential Terraform Configuration
References
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#initialize_params
b/359676042