Add option to attach multiple snapshot schedule to disks (#2639)

* Add changes to link mutiple Snapshot Schedule to a disk/boot disk

* Update Readme and fix for boot snapshot schedule

* Updating for_each expression, fix linting error

---------

Co-authored-by: usamashujaat <155731944+usamashujaat@users.noreply.github.com>
This commit is contained in:
Usama Shujaat
2024-10-28 21:53:43 +04:00
committed by GitHub
parent 601f137c9b
commit 6db881da34
3 changed files with 43 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ variable "attached_disks" {
device_name = optional(string)
# TODO: size can be null when source_type is attach
size = string
snapshot_schedule = optional(string)
snapshot_schedule = optional(list(string))
source = optional(string)
source_type = optional(string)
options = optional(
@@ -84,7 +84,7 @@ variable "boot_disk" {
description = "Boot disk properties."
type = object({
auto_delete = optional(bool, true)
snapshot_schedule = optional(string)
snapshot_schedule = optional(list(string))
source = optional(string)
initialize_params = optional(object({
image = optional(string, "projects/debian-cloud/global/images/family/debian-11")