diff --git a/examples/memcache/main.tf b/examples/memcache/main.tf index 32d41d0..718d6f6 100644 --- a/examples/memcache/main.tf +++ b/examples/memcache/main.tf @@ -33,6 +33,16 @@ module "memcache" { cpu_count = "1" region = "us-east1" authorized_network = module.test-vpc-module.network_id + maintenance_policy = { + day = "MONDAY" + duration = "10800s" + start_time = { + hours = 8 + minutes = 0 + seconds = 0 + nanos = 0 + } + } depends_on = [ module.private-service-access.peering_completed ] diff --git a/modules/memcache/README.md b/modules/memcache/README.md index 10a45f5..628f004 100644 --- a/modules/memcache/README.md +++ b/modules/memcache/README.md @@ -12,7 +12,7 @@ A Terraform module for creating a fully functional Google Memorystore (memcache) | display\_name | An arbitrary and optional user-provided name for the instance. | `string` | `null` | no | | enable\_apis | Flag for enabling memcache.googleapis.com in your project | `bool` | `true` | no | | labels | The resource labels to represent user provided metadata. | `map(string)` | `{}` | no | -| maintenance\_policy | The maintenance policy for an instance. |
object({| `null` | no | +| maintenance\_policy | The maintenance policy for an instance. |
day = string
duration = number
start_time = object({
hours = number
minutes = number
seconds = number
nanos = number
})
})
object({| `null` | no | | memory\_size\_mb | Memcache memory size in MiB. Defaulted to 1024 | `number` | `1024` | no | | name | The ID of the instance or a fully qualified identifier for the instance. | `string` | n/a | yes | | node\_count | Number of nodes in the memcache instance. | `number` | `1` | no | diff --git a/modules/memcache/variables.tf b/modules/memcache/variables.tf index 7ed024d..5c0c688 100644 --- a/modules/memcache/variables.tf +++ b/modules/memcache/variables.tf @@ -88,7 +88,7 @@ variable "maintenance_policy" { # type = object(any) type = object({ day = string - duration = number + duration = string start_time = object({ hours = number minutes = number
day = string
duration = string
start_time = object({
hours = number
minutes = number
seconds = number
nanos = number
})
})