forked from aws-ia/terraform-aws-mendix-private-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
58 lines (48 loc) · 1.39 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
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 "cluster_id" {
type = string
description = "Mendix Private Cloud Cluster ID"
}
variable "eks_node_instance_type" {
type = string
description = "EKS instance type"
default = "t3.medium"
}
variable "cluster_secret" {
type = string
description = "Mendix Private Cloud Cluster Secret"
}
variable "mendix_operator_version" {
type = string
description = "Mendix Private Cloud Operator version"
default = "2.10.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."
}
}