-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (94 loc) · 2.72 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
# ================================================================== general ===
variable "proxies" {
type = object({
default = object({
type = optional(string, "static")
target = string
listener_port = number
listener_allowed_cidrs = list(object({
cidr = string
description = optional(string, "")
}))
})
})
description = "Configuration of the proxy."
}
# =========================================================== infrastructure ===
variable "capacity" {
type = object({
desired = optional(number)
min = optional(number, 1)
max = optional(number, 3)
})
description = "Autoscaling group capacity configuration."
default = {}
}
variable "logs_bucket_name" {
type = string
description = "S3 bucket for storing logs."
default = ""
}
variable "ssm_sessions" {
type = object({
enabled = optional(bool, false)
logs_bucket_name = optional(string, "")
})
description = "SSM Session Manager configuration with optional bucket for session logs."
default = {}
}
# --------------------------------------------------------------- networking ---
variable "public_accessible" {
type = bool
description = "Toggle whether the NLB is publicly accessible."
default = false
}
variable "eip_allocation_ids" {
type = list(string)
description = "Optional list of EIPs for NLB if it is publicly accessible."
default = []
}
variable "vpc_id" {
type = string
description = "ID of the VPC"
}
variable "vpc_private_subnet_ids" {
type = list(string)
description = "IDs of private subnets."
default = []
}
variable "vpc_public_subnet_ids" {
type = list(string)
description = "ID of the public subnets. Only used if publicly accessible."
default = []
}
variable "vpc_security_group_ids" {
type = list(string)
description = "IDs of security groups to attach to the EC2 instances."
default = []
}
variable "vpc_endpoint_service" {
type = object({
enabled = optional(bool, false)
auto_accept_enabled = optional(bool, false)
allowed_principals = optional(list(string), [])
})
description = "Configuration for AWS VPC endpoint service. "
default = {}
}
# ================================================================== context ===
variable "aws_account_id" {
type = string
description = "AWS account ID."
}
variable "aws_kv_namespace" {
type = string
description = "AWS key-value namespace."
}
variable "aws_region_name" {
type = string
description = "AWS region name."
}
variable "experimental_mode" {
type = bool
description = "Toggle for experimental mode."
}