-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
68 lines (56 loc) · 1.68 KB
/
variables.tf
File metadata and controls
68 lines (56 loc) · 1.68 KB
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
variable "region" {
type = string
description = "Primary region for resources"
default = "us-east-1"
}
variable "replication_region" {
type = string
description = "Secondary region, replication for cross-region"
default = "us-west-1"
}
variable "azs" {
type = list(string)
description = "Availability zones within `region`"
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "environment" {
type = string
description = "Environment"
validation {
condition = can(index(["dev", "prod"], var.environment))
error_message = "Invalid Environment."
}
}
variable "project" {
type = string
description = "Project name"
default = "raygill-test"
}
variable "vpc_network_cidr" {
type = string
description = "VPC CIDR range"
}
variable "database_master_username" {
type = string
description = "RDS Aurora master username"
validation {
condition = length(var.database_master_username) >= 20
error_message = "The Database Master username must be at least 20 characters."
}
}
variable "database_master_password" {
type = string
description = "RDS Aurora master username"
validation {
condition = length(var.database_master_password) >= 41
error_message = "The Database Master password must be at least 41 characters."
}
}
variable redis_auth_token {
type = string
description = "Elasticache Redis token (password protected value)"
validation {
condition = length(var.redis_auth_token) >= 64 && length(var.redis_auth_token) <= 128
error_message = "The Database Master password must be at least 64 characters and at most 128."
}
}