Skip to content

Commit

Permalink
feat: add memcache_version parameter (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: Imran Nayer <[email protected]>
  • Loading branch information
bruno561 and imrannayer authored Dec 29, 2023
1 parent f73f8f8 commit bfaa989
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/memcache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A Terraform module for creating a fully functional Google Memorystore (memcache)
| 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 = string<br> start_time = object({<br> hours = number<br> minutes = number<br> seconds = number<br> nanos = number<br> })<br> })</pre> | `null` | no |
| memcache\_version | The major version of Memcached software. | `string` | `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
1 change: 1 addition & 0 deletions modules/memcache/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "google_memcache_instance" "self" {
zones = var.zones
name = var.name
region = var.region
memcache_version = var.memcache_version
authorized_network = var.authorized_network
node_count = var.node_count
display_name = var.display_name == null ? var.name : var.display_name
Expand Down
6 changes: 6 additions & 0 deletions modules/memcache/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ variable "name" {
type = string
}

variable "memcache_version" {
description = "The major version of Memcached software."
type = string
default = null
}

variable "authorized_network" {
description = "The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used."
type = string
Expand Down

0 comments on commit bfaa989

Please sign in to comment.