Skip to content

Commit

Permalink
Fix: Change memcached's maintenance_policy duration attribute type. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
r4rohan committed Jun 12, 2023
1 parent 7382b90 commit 0ab8c11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions examples/memcache/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
2 changes: 1 addition & 1 deletion modules/memcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | <pre>object({<br> day = string<br> duration = number<br> start_time = object({<br> hours = number<br> minutes = number<br> seconds = number<br> nanos = number<br> })<br> })</pre> | `null` | no |
| maintenance\_policy | The maintenance policy for an instance. | <pre>object({<br> day = string<br> duration = string<br> start_time = object({<br> hours = number<br> minutes = number<br> seconds = number<br> nanos = number<br> })<br> })</pre> | `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 |
Expand Down
2 changes: 1 addition & 1 deletion modules/memcache/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ab8c11

Please sign in to comment.