-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
90 lines (75 loc) · 1.89 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
82
83
84
85
86
87
88
89
90
variable "deployed_azs" {
type = list(string)
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
}
variable "vpc_cidr_block" {
type = string
default = "10.0.0.0/16"
}
variable "vpc_private_subnets" {
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
}
variable "vpc_public_subnets" {
type = list(string)
default = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
}
variable "app_db_instance_identifier" {
type = string
description = "id of test db"
default = "appdbpostgres"
}
variable "app_db_instance_class" {
type = string
description = "type of test db"
default = "db.t2.micro"
}
variable "app_db_name" {
type = string
description = "test db name"
default = "appdb"
}
variable "app_db_user" {
type = string
description = "test db user"
default = "appdbuser"
}
variable "app_db_password" {
type = string
description = "test db password"
default = "appdbpassword"
}
variable "db_max_connections" {
type = number
default = 300
}
variable "deployed_ami_base_image" {
type = string
description = "official ubuntu 18 image"
default = "ami-05801d0a3c8e4c443"
}
variable "deployed_instance_type" {
type = string
description = "type of instances to deploy for migration instance, template instance and target group instances"
default = "t2.micro"
}
variable "ssh_pub_key" {
type = string
description = "pub key to be added to instances"
default = ""
}
variable "asg_max_size" {
type = number
description = "max number of vms in asg"
default = 20
}
variable "asg_min_size" {
type = number
description = "min number of vms in asg"
default = 1
}
variable "app_ready_check_path" {
type = string
description = "path to determine ec2 instance health"
default = "/welcome/default/date_time"
}