You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/runners/variables.tf
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,15 @@
1
+
variable"ami" {
2
+
description="AMI configuration for the action runner instances"
3
+
type=object({
4
+
filter =optional(map(list(string)), { state = ["available"] })
5
+
owners =optional(list(string), ["amazon"])
6
+
id_ssm_parameter_name =optional(string, null)
7
+
id_ssm_parameter_arn =optional(string, null)
8
+
kms_key_arn =optional(string, null)
9
+
})
10
+
default=null
11
+
}
12
+
1
13
variable"aws_region" {
2
14
description="AWS region."
3
15
type=string
@@ -114,7 +126,7 @@ variable "instance_types" {
114
126
}
115
127
116
128
variable"ami_filter" {
117
-
description="Map of lists used to create the AMI filter for the action runner AMI."
129
+
description="[DEPRECATED: Use ami.filter] Map of lists used to create the AMI filter for the action runner AMI."
118
130
type=map(list(string))
119
131
default={ state = ["available"] }
120
132
validation {
@@ -125,25 +137,25 @@ variable "ami_filter" {
125
137
}
126
138
127
139
variable"ami_owners" {
128
-
description="The list of owners used to select the AMI of action runner instances."
140
+
description="[DEPRECATED: Use ami.owners] The list of owners used to select the AMI of action runner instances."
129
141
type=list(string)
130
142
default=["amazon"]
131
143
}
132
144
133
145
variable"ami_id_ssm_parameter_arn" {
134
-
description="ARN of the SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
146
+
description="[DEPRECATED: Use ami.id_ssm_parameter_arn] ARN of the SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
135
147
type=string
136
148
default=null
137
149
}
138
150
139
151
variable"ami_id_ssm_parameter_name" {
140
-
description="Externally managed SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
152
+
description="[DEPRECATED: Use ami.id_ssm_parameter_name] Externally managed SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
141
153
type=string
142
154
default=null
143
155
}
144
156
145
157
variable"ami_kms_key_arn" {
146
-
description="Optional CMK Key ARN to be used to launch an instance from a shared encrypted AMI"
158
+
description="[DEPRECATED: Use ami.kms_key_arn] Optional CMK Key ARN to be used to launch an instance from a shared encrypted AMI"
description="AMI configuration for the action runner instances"
371
+
type=object({
372
+
filter =optional(map(list(string)), { state = ["available"] })
373
+
owners =optional(list(string), ["amazon"])
374
+
id_ssm_parameter_name =optional(string, null)
375
+
id_ssm_parameter_arn =optional(string, null)
376
+
kms_key_arn =optional(string, null)
377
+
})
378
+
default=null
379
+
}
380
+
369
381
variable"ami_filter" {
370
-
description="Map of lists used to create the AMI filter for the action runner AMI."
382
+
description="[DEPRECATED: Use ami.filter] Map of lists used to create the AMI filter for the action runner AMI."
371
383
type=map(list(string))
372
384
default={ state = ["available"] }
373
385
validation {
374
386
# check the availability of the AMI
375
387
condition=contains(keys(var.ami_filter), "state")
376
-
error_message="The \"ami_filter\" variable must contain the \"state\" key with the value \"available\"."
388
+
error_message="The AMI filter must contain the state filter."
377
389
}
378
390
}
379
391
380
392
variable"ami_owners" {
381
-
description="The list of owners used to select the AMI of action runner instances."
393
+
description="[DEPRECATED: Use ami.owners] The list of owners that should be used to find the AMI."
382
394
type=list(string)
383
395
default=["amazon"]
384
396
}
385
397
386
-
variable"ami_id_ssm_parameter_arn" {
387
-
description="ARN of the SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
398
+
variable"ami_id_ssm_parameter_name" {
399
+
description="[DEPRECATED: Use ami.id_ssm_parameter_name] String used to construct the SSM parameter name used to resolve the latest AMI ID for the runner instances. The SSM parameter should be of type String and contain a valid AMI ID. The default behavior is to use the latest Ubuntu 22.04 AMI."
388
400
type=string
389
401
default=null
390
402
}
391
403
392
-
variable"ami_id_ssm_parameter_name" {
393
-
description="(DEPRECATED) Variable is replaced by `ami_id_ssm_parameter_arn` Externally managed SSM parameter (of data type aws:ec2:image) that contains the AMI ID to launch runner instances from. Overrides ami_filter"
404
+
variable"ami_id_ssm_parameter_arn" {
405
+
description="[DEPRECATED: Use ami.id_ssm_parameter_arn] Arn of the SSM parameter used to resolve the AMI ID for the runner instances. The SSM parameter should be of type String and contain a valid AMI ID."
394
406
type=string
395
407
default=null
396
408
}
397
409
398
410
variable"ami_kms_key_arn" {
399
-
description="Optional CMK Key ARN to be used to launch an instance from a shared encrypted AMI"
411
+
description="[DEPRECATED: Use ami.kms_key_arn] Optional CMK Key ARN to be used to launch an instance from a shared encrypted AMI"
0 commit comments