mirror of
https://github.com/storytold/terraform-aws-observability-accelerator.git
synced 2026-10-09 00:09:43 +00:00
b513fe4e72
* Add plan test on CodeBuild * (to revert) remove changes filter * (to revert) allow running on current branch * (to revert) run assume role always * Fix terraform state s3 keys for ci tests * Add defaults for e2e * Fix bucket name * Debug clone version * Pass build version * Use actions env syntax * fixup! Use actions env syntax * fixup! fixup! Use actions env syntax * fixup! fixup! fixup! Use actions env syntax * Add input for amp monitoring * Update e2e cluster name * use credentials v2 * Cleanup * Add build badge * Revert triggers settings
31 lines
1.0 KiB
Terraform
31 lines
1.0 KiB
Terraform
variable "cluster_name" {
|
|
description = "Name of cluster - used by Terratest for e2e test automation"
|
|
type = string
|
|
default = "eks-cluster-with-vpc"
|
|
|
|
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" {
|
|
description = "AWS Region"
|
|
type = string
|
|
}
|
|
variable "managed_node_instance_type" {
|
|
description = "Instance type for the cluster managed node groups"
|
|
type = string
|
|
default = "t3.xlarge"
|
|
}
|
|
variable "managed_node_min_size" {
|
|
description = "Minumum number of instances in the node group"
|
|
type = number
|
|
default = 2
|
|
}
|
|
variable "eks_version" {
|
|
type = string
|
|
description = "EKS Cluster version"
|
|
default = "1.24"
|
|
}
|