» google_compute_disk_resource_policy_attachment

Disk resource policies define a schedule for taking snapshots and a retention period for these snapshots.

» Argument Reference

The following arguments are supported:

  • name - (Required) The resource policy to be attached to the disk for scheduling snapshot creation. Do not specify the self link.

  • disk - (Required) The name of the disk in which the resource policies are attached to.


  • zone - (Optional) A reference to the zone where the disk resides.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

» Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 4 minutes.
  • delete - Default is 4 minutes.

» Import

DiskResourcePolicyAttachment can be imported using any of these accepted formats:

$ terraform import google_compute_disk_resource_policy_attachment.default projects/{{project}}/zones/{{zone}}/disks/{{disk}}/{{name}}
$ terraform import google_compute_disk_resource_policy_attachment.default {{project}}/{{zone}}/{{disk}}/{{name}}
$ terraform import google_compute_disk_resource_policy_attachment.default {{zone}}/{{disk}}/{{name}}
$ terraform import google_compute_disk_resource_policy_attachment.default {{disk}}/{{name}}

» User Project Overrides

This resource supports User Project Overrides.