diff --git a/README.md b/README.md index 648e5b4..bbbc466 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,7 @@ Available targets: | existing\_security\_groups | List of existing Security Group IDs to place the cluster into. Set `use_existing_security_groups` to `true` to enable using `existing_security_groups` as Security Groups for the cluster | `list(string)` | `[]` | no | | family | Redis family | `string` | `"redis4.0"` | no | | instance\_type | Elastic cache instance type | `string` | `"cache.t2.micro"` | no | +| label\_order | The naming order of the id output and Name tag | `list(string)` | `[]` | no | | maintenance\_window | Maintenance window | `string` | `"wed:03:00-wed:04:00"` | no | | name | Name of the application | `string` | n/a | yes | | namespace | Namespace (e.g. `eg` or `cp`) | `string` | `""` | no | diff --git a/docs/terraform.md b/docs/terraform.md index 20ef7dc..dbcbe3d 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -39,6 +39,7 @@ | existing\_security\_groups | List of existing Security Group IDs to place the cluster into. Set `use_existing_security_groups` to `true` to enable using `existing_security_groups` as Security Groups for the cluster | `list(string)` | `[]` | no | | family | Redis family | `string` | `"redis4.0"` | no | | instance\_type | Elastic cache instance type | `string` | `"cache.t2.micro"` | no | +| label\_order | The naming order of the id output and Name tag | `list(string)` | `[]` | no | | maintenance\_window | Maintenance window | `string` | `"wed:03:00-wed:04:00"` | no | | name | Name of the application | `string` | n/a | yes | | namespace | Namespace (e.g. `eg` or `cp`) | `string` | `""` | no | diff --git a/main.tf b/main.tf index dde4440..a16122c 100644 --- a/main.tf +++ b/main.tf @@ -1,12 +1,13 @@ module "label" { - source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.17.0" - enabled = var.enabled - namespace = var.namespace - name = var.name - stage = var.stage - delimiter = var.delimiter - attributes = var.attributes - tags = var.tags + source = "git::https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.17.0" + enabled = var.enabled + namespace = var.namespace + name = var.name + stage = var.stage + delimiter = var.delimiter + attributes = var.attributes + tags = var.tags + label_order = var.label_order } # diff --git a/variables.tf b/variables.tf index 7c3a815..aa559da 100644 --- a/variables.tf +++ b/variables.tf @@ -239,3 +239,9 @@ variable "cluster_mode_num_node_groups" { description = "Number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications" default = 0 } + +variable "label_order" { + type = list(string) + default = [] + description = "The naming order of the id output and Name tag" +}