Skip to content

Commit f2bbcb1

Browse files
authored
fix(runners): zip base64 encoded user data to avoid size limits (#3717)
Schrink the size of the userdata buy zipping the content. close: #3700
1 parent b140e2b commit f2bbcb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ resource "aws_launch_template" "runner" {
154154
)
155155
}
156156

157-
user_data = var.enable_userdata ? base64encode(templatefile(local.userdata_template, {
157+
user_data = var.enable_userdata ? base64gzip(templatefile(local.userdata_template, {
158158
enable_debug_logging = var.enable_user_data_debug_logging
159159
s3_location_runner_distribution = local.s3_location_runner_distribution
160160
pre_install = var.userdata_pre_install

0 commit comments

Comments
 (0)