Skip to content

Commit

Permalink
feat: add disk resource policies
Browse files Browse the repository at this point in the history
  • Loading branch information
rauny-brandao committed Jun 24, 2024
1 parent 4f8dc51 commit 3429c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/instance_template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
| can\_ip\_forward | Enable IP forwarding, for NAT instances for example | `string` | `"false"` | no |
| disk\_encryption\_key | The id of the encryption key that is stored in Google Cloud KMS to use to encrypt all the disks on this instance | `string` | `null` | no |
| disk\_labels | Labels to be assigned to boot disk, provided as a map | `map(string)` | `{}` | no |
| disk\_resource\_policies | A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations | `list(string)` | `[]` | no |
| disk\_size\_gb | Boot disk size in GB | `string` | `"100"` | no |
| disk\_type | Boot disk type, can be either pd-ssd, local-ssd, or pd-standard | `string` | `"pd-standard"` | no |
| enable\_confidential\_vm | Whether to enable the Confidential VM configuration on the instance. Note that the instance image must support Confidential VMs. See https://cloud.google.com/compute/docs/images | `bool` | `false` | no |
Expand Down
4 changes: 4 additions & 0 deletions modules/instance_template/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ spec:
description: Labels to be assigned to boot disk, provided as a map
varType: map(string)
defaultValue: {}
- name: disk_resource_policies
description: A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations
varType: list(string)
defaultValue: []
- name: disk_size_gb
description: Boot disk size in GB
varType: string
Expand Down

0 comments on commit 3429c4c

Please sign in to comment.