generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables.tf
82 lines (67 loc) · 2.1 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
variable "aws_region" {
type = string
description = "AWS Region name"
}
variable "domain_name" {
type = string
description = "Domain name"
}
variable "s3_bucket_name" {
type = string
description = "S3 bucket name"
}
variable "namespace_id" {
type = string
description = "Mendix Private Cloud Namespace ID"
}
variable "namespace_secret" {
type = string
description = "Mendix Private Cloud Namespace Secret"
}
variable "eks_node_instance_type" {
type = string
description = "EKS instance type"
default = "t3.medium"
}
variable "eks_cluster_name_prefix" {
type = string
description = "EKS name prefix for the new cluster"
default = "mendix-eks"
validation {
condition = length(var.eks_cluster_name_prefix) < 65 && can(regex("^[0-9A-Za-z][A-Za-z0-9\\-_]*", var.eks_cluster_name_prefix))
error_message = "EKS name prefix max length is 65 and it should have the next patter: ^[0-9A-Za-z][A-Za-z0-9\\-_]*"
}
}
variable "mendix_operator_version" {
type = string
description = "Mendix Private Cloud Operator version"
default = "2.16.0"
}
variable "certificate_expiration_email" {
type = string
description = "Let's Encrypt certificate expiration email"
}
variable "allowed_ips" {
type = list(string)
default = ["0.0.0.0/0"]
description = "List of IP adresses allowed to access EKS cluster endpoint"
}
variable "environments_internal_names" {
type = list(string)
default = ["app1"]
description = "List of internal environments names"
validation {
condition = alltrue([for app in var.environments_internal_names : can(regex("^[a-z0-9]{1,8}$", app))])
error_message = "Use only lowercase letters and numbers, with a maximum of 8 characters and a minimum of 1 character."
}
}
variable "postgres_version" {
type = string
description = "The version of Postgres that terraform would create."
default = "14.11"
}
variable "eks_version" {
type = string
description = "The version of EKS that terraform would create."
default = "1.29"
}