-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
99 lines (84 loc) · 1.94 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
variable "tags" {
type = map(string)
description = "Resource tags"
default = {}
}
variable "app_env" {
type = string
description = "Application environment"
}
variable "app_domain" {
type = string
description = "Application domain"
}
variable "web_app_port" {
type = number
description = "Port number for web application"
}
variable "api_app_port" {
type = number
description = "Port number for API application"
}
# Example: https://cloud-images.ubuntu.com/locator/ec2/
variable "aws_ami" {
type = string
description = "AWS AMI for specified region"
}
variable "vpc_cidr_block" {
type = string
description = "CIDR block for VPC"
default = "10.0.0.0/16"
}
variable "public_subnet_count" {
type = number
description = "Number of public subnets"
default = 2
}
variable "private_subnet_count" {
type = number
description = "Number of private subnets"
default = 2
}
variable "public_subnet_cidr_blocks" {
type = list(string)
description = "Available CIDR blocks for public subnets"
default = [
"10.0.1.0/24",
"10.0.2.0/24",
"10.0.3.0/24",
"10.0.4.0/24"
]
}
variable "private_subnet_cidr_blocks" {
type = list(string)
description = "Available CIDR blocks for private subnets"
default = [
"10.0.101.0/24",
"10.0.102.0/24",
"10.0.103.0/24",
"10.0.104.0/24",
]
}
variable "db_username" {
type = string
description = "Database username"
}
variable "db_password" {
type = string
description = "Database password"
sensitive = true
}
variable "web_server_count" {
type = number
description = "Number of web servers"
default = 1
}
variable "web_server_public_key" {
type = string
description = "SSH public key for the web servers"
}
variable "cloudwatch_alarms" {
type = bool
description = "Enable CloudWatch alarms"
default = true
}