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
description="Warning for deprecated variables usage"
72
+
description="Warning for deprecated variables usage. These variables will be removed in a future release. Please migrate to using the consolidated 'ami' object in each runner configuration."
"DEPRECATION WARNING: The variable 'ami_id_ssm_parameter_name' in runner '${key}' is deprecated and will be removed in a future version. Please use 'ami.id_ssm_parameter_arn' instead.\n":
77
-
""
75
+
join("", [
76
+
# Show object migration warning only when ami is null and old variables are used
"DEPRECATION WARNING: Runner '${key}' is using deprecated AMI variables (ami_filter, ami_owners, ami_kms_key_arn). These variables will be removed in a future version. Please migrate to using the consolidated 'ami' object.\n":""
82
+
) :"",
83
+
# Always show warning for ami_id_ssm_parameter_name to migrate to ami_id_ssm_parameter_arn
Copy file name to clipboardExpand all lines: modules/runners/variables.tf
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,21 @@
1
1
variable"ami" {
2
-
description="AMI configuration for the action runner instances"
2
+
description=<<EOT
3
+
AMI configuration for the action runner instances. This object allows you to specify all AMI-related settings in one place.
4
+
5
+
Parameters:
6
+
- `filter`: Map of lists to filter AMIs by various criteria (e.g., { name = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-*"], state = ["available"] })
7
+
- `owners`: List of AMI owners to limit the search. Common values: ["amazon"], ["self"], or specific AWS account IDs
8
+
- `id_ssm_parameter_name`: Name of an SSM parameter containing the AMI ID. If specified, this overrides the AMI filter
9
+
- `id_ssm_parameter_arn`: ARN of an SSM parameter containing the AMI ID. If specified, this overrides both AMI filter and parameter name
10
+
- `kms_key_arn`: Optional KMS key ARN if the AMI is encrypted with a customer managed key
11
+
12
+
Defaults to null, in which case the module falls back to individual AMI variables (deprecated).
13
+
EOT
3
14
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)
15
+
filter =optional(map(list(string)), { state = ["available"] })
description="Warning for deprecated variables usage"
80
+
description="Warning for deprecated variables usage. These variables will be removed in a future release. Please migrate to using the consolidated 'ami' object."
81
81
value=join("", [
82
-
var.ami_id_ssm_parameter_name!=null?"DEPRECATION WARNING: The variable 'ami_id_ssm_parameter_name' is deprecated and will be removed in a future version. Please use 'ami.id_ssm_parameter_arn' instead.\n":"",
82
+
# Show object migration warning only when ami is null and old variables are used
"DEPRECATION WARNING: You are using the deprecated AMI variables (ami_filter, ami_owners, ami_kms_key_arn). These variables will be removed in a future version. Please migrate to using the consolidated 'ami' object.\n":"",
86
+
]) :"",
87
+
# Always show warning for ami_id_ssm_parameter_name to migrate to ami_id_ssm_parameter_arn
88
+
var.ami_id_ssm_parameter_name!=null?"DEPRECATION WARNING: The variable 'ami_id_ssm_parameter_name' is deprecated and will be removed in a future version. Please use 'ami.id_ssm_parameter_arn' instead.\n":""
description="AMI configuration for the action runner instances"
370
+
description=<<EOT
371
+
AMI configuration for the action runner instances. This object allows you to specify all AMI-related settings in one place.
372
+
373
+
Parameters:
374
+
- `filter`: Map of lists to filter AMIs by various criteria (e.g., { name = ["ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-*"], state = ["available"] })
375
+
- `owners`: List of AMI owners to limit the search. Common values: ["amazon"], ["self"], or specific AWS account IDs
376
+
- `id_ssm_parameter_name`: Name of an SSM parameter containing the AMI ID. If specified, this overrides the AMI filter
377
+
- `id_ssm_parameter_arn`: ARN of an SSM parameter containing the AMI ID. If specified, this overrides both AMI filter and parameter name
378
+
- `kms_key_arn`: Optional KMS key ARN if the AMI is encrypted with a customer managed key
379
+
380
+
Defaults to null, in which case the module falls back to individual AMI variables (deprecated).
381
+
EOT
371
382
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)
383
+
filter =optional(map(list(string)), { state = ["available"] })
0 commit comments