diff --git a/README.md b/README.md index 8d00711..0c87581 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,7 @@ Available targets: | instance_count | Number of data nodes in the cluster | number | `4` | no | | instance_type | Elasticsearch instance type for data nodes in the cluster | string | `t2.small.elasticsearch` | no | | kibana_subdomain_name | The name of the subdomain for Kibana in the DNS zone (_e.g._ `kibana`, `ui`, `ui-es`, `search-ui`, `kibana.elasticsearch`) | string | `kibana` | no | +| label_order | The naming order of the id output and Name tag | list(string) | `` | no | | log_publishing_application_cloudwatch_log_group_arn | ARN of the CloudWatch log group to which log for ES_APPLICATION_LOGS needs to be published | string | `` | no | | log_publishing_application_enabled | Specifies whether log publishing option for ES_APPLICATION_LOGS is enabled or not | bool | `false` | no | | log_publishing_index_cloudwatch_log_group_arn | ARN of the CloudWatch log group to which log for INDEX_SLOW_LOGS needs to be published | string | `` | no | diff --git a/docs/terraform.md b/docs/terraform.md index ffc70de..76847ea 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -28,6 +28,7 @@ | instance_count | Number of data nodes in the cluster | number | `4` | no | | instance_type | Elasticsearch instance type for data nodes in the cluster | string | `t2.small.elasticsearch` | no | | kibana_subdomain_name | The name of the subdomain for Kibana in the DNS zone (_e.g._ `kibana`, `ui`, `ui-es`, `search-ui`, `kibana.elasticsearch`) | string | `kibana` | no | +| label_order | The naming order of the id output and Name tag | list(string) | `` | no | | log_publishing_application_cloudwatch_log_group_arn | ARN of the CloudWatch log group to which log for ES_APPLICATION_LOGS needs to be published | string | `` | no | | log_publishing_application_enabled | Specifies whether log publishing option for ES_APPLICATION_LOGS is enabled or not | bool | `false` | no | | log_publishing_index_cloudwatch_log_group_arn | ARN of the CloudWatch log group to which log for INDEX_SLOW_LOGS needs to be published | string | `` | no | diff --git a/main.tf b/main.tf index ce924b8..bf9427c 100644 --- a/main.tf +++ b/main.tf @@ -7,6 +7,7 @@ module "label" { environment = var.environment delimiter = var.delimiter attributes = var.attributes + label_order = var.label_order tags = var.tags } @@ -19,6 +20,7 @@ module "user_label" { environment = var.environment delimiter = var.delimiter attributes = concat(var.attributes, ["user"]) + label_order = var.label_order tags = var.tags } diff --git a/variables.tf b/variables.tf index 7fd44bc..d3c6649 100644 --- a/variables.tf +++ b/variables.tf @@ -40,6 +40,12 @@ variable "attributes" { description = "Additional attributes (e.g. `1`)" } +variable "label_order" { + type = list(string) + default = [] + description = "The naming order of the id output and Name tag" +} + variable "tags" { type = map(string) default = {}