Skip to content

Commit 112804b

Browse files
fix: fix typo
1 parent 5586b38 commit 112804b

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

modules/multi-runner/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ variable "multi_runner_config" {
149149
}), null)
150150
license_specifications = optional(list(object({
151151
license_configuration_arn = string
152-
})), null)
152+
})), [])
153153
runner_log_files = optional(list(object({
154154
log_group_name = string
155155
prefix_log_group = bool

modules/runners/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ locals {
8282
enable_cloudwatch_agent = var.enable_cloudwatch_agent
8383
ssm_key_cloudwatch_agent_config = var.enable_cloudwatch_agent ? aws_ssm_parameter.cloudwatch_agent_config_runner[0].name : ""
8484
}) : var.userdata_content) : ""
85+
86+
encoded_user_data = (
87+
var.runner_os == "linux" ? base64gzip(local.user_data) :
88+
var.runner_os == "windows" ? base64encode(local.user_data) :
89+
var.runner_os == "osx" ? base64encode(local.user_data) :
90+
null
91+
)
8592
}
8693

8794
data "aws_ami" "runner" {
@@ -278,7 +285,7 @@ resource "aws_launch_template" "runner" {
278285
)
279286
}
280287

281-
user_data = var.runner_os == "windows" ? base64encode(local.user_data) : base64gzip(local.user_data)
288+
user_data = local.encoded_user_data
282289

283290
tags = local.tags
284291

0 commit comments

Comments
 (0)