Skip to content

Commit 64b8594

Browse files
authored
fix: Compress (zip) user_data to avoid max size (#565)
1 parent 6d0da3e commit 64b8594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ data "aws_ami" "runner" {
224224
resource "aws_launch_template" "gitlab_runner_instance" {
225225
name_prefix = local.name_runner_agent_instance
226226
image_id = data.aws_ami.runner.id
227-
user_data = base64encode(local.template_user_data)
227+
user_data = base64gzip(local.template_user_data)
228228
instance_type = var.instance_type
229229
update_default_version = true
230230
ebs_optimized = var.runner_instance_ebs_optimized

0 commit comments

Comments
 (0)