mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-26 08:27:14 +00:00
Lsa/resource name length i#118 (#135)
* Validation added to cluster_name variable * Update ref to eks-cluster-with-vpc on v4.13.1 (#121) * Added cluster_name validation with message (#118) * Error message typo fixed to follow the standards. * Adding requested new line at the end
This commit is contained in:
@@ -2,6 +2,12 @@ variable "cluster_name" {
|
|||||||
description = "Name of cluster - used by Terratest for e2e test automation"
|
description = "Name of cluster - used by Terratest for e2e test automation"
|
||||||
type = string
|
type = string
|
||||||
default = ""
|
default = ""
|
||||||
|
|
||||||
|
validation {
|
||||||
|
# cluster name is used as prefix on eks_blueprint module and cannot be >25 characters
|
||||||
|
condition = can(regex("^[a-zA-Z][-a-zA-Z0-9]{3,24}$", var.cluster_name))
|
||||||
|
error_message = "Cluster name is used as a prefix-name for other resources. Max size is 25 chars and must satisfy regular expression pattern: '[a-zA-Z][-a-zA-Z0-9]{3,19}'."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
variable "aws_region" {
|
variable "aws_region" {
|
||||||
description = "AWS Region"
|
description = "AWS Region"
|
||||||
|
|||||||
@@ -2999,4 +2999,4 @@
|
|||||||
"uid": "efa86fd1d0c121a26444b636a3f509a8",
|
"uid": "efa86fd1d0c121a26444b636a3f509a8",
|
||||||
"version": 23,
|
"version": 23,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2657,4 +2657,4 @@
|
|||||||
"uid": "a87fb0d919ec0ea5f6543124e16c42a5",
|
"uid": "a87fb0d919ec0ea5f6543124e16c42a5",
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2265,4 +2265,4 @@
|
|||||||
"uid": "a164a7f0339f99e89cea5cb47e9be617",
|
"uid": "a164a7f0339f99e89cea5cb47e9be617",
|
||||||
"version": 7,
|
"version": 7,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user