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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user