Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add memcache_version parameter #185

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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