-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
123 lines (103 loc) · 2.59 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
variable "region" {
description = "AWS region"
type = string
default = "us-east-1"
}
variable "ami_id" {
description = "ID of the Amazon Machine Image (AMI)"
type = string
default = "ami-0d86d19bb909a6c95"
}
variable "instance_type" {
description = "Type of EC2 instance"
type = string
default = "t2.micro"
}
variable "evaluation_periods" {
description = "Number of periods to evaluate the metric"
type = number
default = 1
}
variable "metric_name" {
description = "Name of the metric to monitor"
type = string
default = "CPUUtilization"
}
variable "namespace" {
description = "Namespace of the metric to monitor"
type = string
default = "AWS/EC2"
}
variable "period" {
description = "Period of the metric to monitor"
type = number
default = 60
}
variable "statistic" {
description = "Statistic of the metric to monitor"
type = string
default = "Average"
}
variable "cooldown" {
description = "Cooldown period for the Auto Scaling Group"
type = number
default = 300
}
variable "adjustment_type" {
description = "Adjustment type for the Auto Scaling Group"
type = string
default = "ChangeInCapacity"
}
variable "alb_name" {
description = "Name for the Application Load Balancer"
type = string
default = "andrem_alb"
}
variable "internal" {
description = "Set to true if the ALB should be internal"
type = bool
default = false
}
variable "lb_type" {
description = "Type of the load balancer (application, network, etc.)"
type = string
default = "application"
}
variable "target_group_name" {
description = "Name for the target group"
type = string
default = "andrem_target_group"
}
variable "target_group_port" {
description = "Port for the target group"
type = number
default = 80
}
variable "target_group_protocol" {
description = "Protocol for the target group"
type = string
default = "HTTP"
}
variable "timeout" {
description = "Timeout for the health check"
type = number
default = 5
}
variable "azs" {
type = list(string)
description = "Availability Zones"
default = ["us-east-1a", "us-east-1b"]
}
variable "db_name" {
description = "Name of the database to create"
type = string
default = "mydb"
}
variable "db_username" {
description = "Master username for the DB instance"
type = string
}
variable "db_password" {
description = "Master password for the DB instance"
type = string
}