-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
executable file
·107 lines (87 loc) · 2.85 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
# ================================================================= teleport ===
variable "teleport_runtime_version" {
type = string
description = "The runtime version of Teleport."
}
variable "teleport_letsencrypt_email" {
type = string
description = "The email address to use for Let's Encrypt."
}
variable "teleport_setup_mode" {
type = bool
description = "Toggle Teleport setup mode."
default = true
}
variable "teleport_experimental_mode" {
type = bool
description = "Toggle Teleport experimental mode."
default = false
}
# ----------------------------------------------------------------- instance ---
variable "instance_config" {
type = object({
auth = optional(object({
count = optional(number, 1)
sizes = optional(list(string), ["t3.micro", "t3a.micro"])
}), {})
node = optional(object({
count = optional(number, 1)
sizes = optional(list(string), ["t3.micro", "t3a.micro"])
}), {})
proxy = optional(object({
count = optional(number, 1)
sizes = optional(list(string), ["t3.micro", "t3a.micro"])
}), {})
})
description = "Configuration for the instances. Each type (`auth`, `node`, `proxy`) contains an object with `count` and `sizes`."
default = {}
}
# ------------------------------------------------------------------ buckets ---
variable "artifacts_bucket_name" {
type = string
description = "The name of the S3 bucket for artifacts."
default = ""
}
variable "logs_bucket_name" {
type = string
description = "The name of the S3 bucket for logs."
default = ""
}
# ---------------------------------------------------------------------- dns ---
variable "dns_parent_zone_id" {
type = string
description = "The ID of the parent DNS zone."
}
variable "dns_parent_zone_name" {
type = string
description = "The name of the parent DNS zone."
}
# ------------------------------------------------------------------ network ---
variable "vpc_id" {
type = string
description = "The ID of the VPC to deploy resources into."
}
variable "vpc_private_subnet_ids" {
type = list(string)
description = "The IDs of the private subnets in the VPC to deploy resources into."
}
variable "vpc_public_subnet_ids" {
type = list(string)
description = "The IDs of the public subnets in the VPC to deploy resources into."
}
# ================================================================== context ===
variable "aws_region_name" {
type = string
description = "The name of the AWS region."
default = ""
}
variable "aws_account_id" {
type = string
description = "The ID of the AWS account."
default = ""
}
variable "aws_kv_namespace" {
type = string
description = "The namespace or prefix for AWS SSM parameters and similar resources."
default = ""
}