diff --git a/README.md b/README.md index c749444..122b8b5 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,7 @@ Available targets: | [max\_item\_size](#input\_max\_item\_size) | Max item size | `number` | `10485760` | no | | [name](#input\_name) | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a `tag`.
The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. | `string` | `null` | no | | [namespace](#input\_namespace) | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique | `string` | `null` | no | +| [network\_type](#input\_network\_type) | The network type of the cluster. Valid values: ipv4, ipv6, dual\_stack. | `string` | `"ipv4"` | no | | [notification\_topic\_arn](#input\_notification\_topic\_arn) | Notification topic arn | `string` | `""` | no | | [port](#input\_port) | Memcached port | `number` | `11211` | no | | [regex\_replace\_chars](#input\_regex\_replace\_chars) | Terraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no | diff --git a/docs/terraform.md b/docs/terraform.md index e63d993..3ebb37e 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -77,6 +77,7 @@ | [max\_item\_size](#input\_max\_item\_size) | Max item size | `number` | `10485760` | no | | [name](#input\_name) | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'.
This is the only ID element not also included as a `tag`.
The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. | `string` | `null` | no | | [namespace](#input\_namespace) | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique | `string` | `null` | no | +| [network\_type](#input\_network\_type) | The network type of the cluster. Valid values: ipv4, ipv6, dual\_stack. | `string` | `"ipv4"` | no | | [notification\_topic\_arn](#input\_notification\_topic\_arn) | Notification topic arn | `string` | `""` | no | | [port](#input\_port) | Memcached port | `number` | `11211` | no | | [regex\_replace\_chars](#input\_regex\_replace\_chars) | Terraform regular expression (regex) string.
Characters matching the regex will be removed from the ID elements.
If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. | `string` | `null` | no | diff --git a/main.tf b/main.tf index f45c60b..adb1a9e 100644 --- a/main.tf +++ b/main.tf @@ -121,6 +121,7 @@ resource "aws_elasticache_cluster" "default" { az_mode = var.az_mode availability_zone = var.availability_zone preferred_availability_zones = var.availability_zones + network_type = var.network_type tags = module.this.tags } diff --git a/variables.tf b/variables.tf index 105193d..c426d7f 100644 --- a/variables.tf +++ b/variables.tf @@ -16,6 +16,12 @@ variable "subnets" { description = "AWS subnet ids" } +variable "network_type" { + type = string + default = "ipv4" + description = "The network type of the cluster. Valid values: ipv4, ipv6, dual_stack." +} + variable "maintenance_window" { type = string default = "wed:03:00-wed:04:00"