-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
184 lines (159 loc) · 4.21 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
variable "gitlab_api_url" {
type = string
sensitive = true
default = "https://gitlab.com/api/v4/"
description = "Target GitLab base API endpoint in the form of `https://my.gitlab.server/api/v4/`."
}
variable "vpc_id" {
description = "The ID of the VPC."
type = string
}
variable "vpc_cidr" {
description = "The CIDR block for the VPC."
type = string
default = "172.31.0.0/16"
}
variable "bastion_security_group_id" {
description = "The ID of the bastion security group."
type = string
default = "sg-0a1b2c3d4e5f6g7h8"
}
variable "ami_user" {
description = "The user to use for the AMI."
type = string
default = "ec2-user"
}
variable "aws_region" {
description = "The AWS region to use."
type = string
}
variable "environment_name" {
description = "The name of the environment."
type = string
}
# variable "architecture" {
# description = "An image's architecture. Can be x86_64 or arm64."
# default = "x86_64"
# type = string
# }
variable "api_gateway_stage_name" {
description = "Name of the API Gateway deployment stage"
default = "dev"
type = string
}
variable "image_id" {
description = "If unset or false (default), use the data lookup for the image"
default = null
type = string
}
variable "image_name" {
description = "The 'service_name' of the image to lookup"
default = "gitlab-runner-amazon"
type = string
}
variable "key_name" {
description = "The name of the key pair to use."
default = "gitlab-runner-key"
type = string
}
# variable "ecr_url" {
# description = "The ECR URL for the Docker image."
# type = string
# default = "docker.io"
# }
# variable "docker_image_name" {
# description = "The name of the Docker image to use."
# type = string
# default = "docker"
# }
# variable "docker_image_tag" {
# description = "The tag of the Docker image to use."
# type = string
# default = "latest"
# }
variable "iam_role" {
description = "The IAM role to use for the instances."
type = string
default = "gitlab-runner"
}
variable "fleet_instance_types" {
description = "The instance types to use."
type = list(string)
default = [
"m5a.large",
"m5.large",
"m6a.large",
"m6i.large",
"m7a.large",
"c5.large",
"c5a.large",
"c6a.large",
"c6i.large",
"c7i.large",
"c7a.large",
"m7i.large",
"m7i-flex.large"
]
}
variable "private_subnet_ids" {
description = "List of subnet IDs to launch resources in."
type = list(string)
default = [
"subnet-0a1b2c3d4e5f6g7h8",
]
}
variable "root_disk_size" {
description = "The size of the root disk in GB."
type = number
default = 30
}
variable "volume_delete_on_termination" {
description = "Whether to delete the root volume on instance termination."
type = bool
default = true
}
variable "min_size" {
description = "The minimum number of instances in the autoscaling group."
type = number
default = 0
}
variable "max_size" {
description = "The maximum number of instances in the autoscaling group."
type = number
default = 10
}
variable "desired_size" {
description = "The desired number of instances in the autoscaling group."
type = number
default = 0
}
variable "capacity_per_instance" {
description = "The number of concurrent jobs per instance."
type = number
default = null
}
variable "gl_runner_tags" {
description = "The tags to apply to the GitLab Runner."
type = list(string)
default = null
}
variable "group_id" {
description = "The GitLab group ID."
type = number
default = 1347 # platformservices group id
}
variable "gl_cache_path" {
description = "The IAM role to use for the instances."
type = string
default = "cache"
}
variable "idle_threshold" {
description = "The number of seconds before a runner is considered idle."
type = number
default = null
}
variable "gitlab_secret_token" {
description = "Secret token configured in GitLab webhook for validation"
type = string
default = "h&s8BdSbinDQ7h"
}