Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 490569c

Browse files
kuvaldininpalm
authored andcommitted
variable "volume_size"
1 parent 76cdbe3 commit 490569c

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

Diff for: main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module "runners" {
8686
idle_config = var.idle_config
8787
enable_ssm_on_runners = var.enable_ssm_on_runners
8888
runner_additional_security_group_ids = var.runner_additional_security_group_ids
89+
volume_size = var.volume_size
8990

9091
lambda_s3_bucket = var.lambda_s3_bucket
9192
runners_lambda_s3_key = var.runners_lambda_s3_key

Diff for: modules/runners/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ resource "aws_launch_template" "runner" {
4444
ebs {
4545
delete_on_termination = lookup(block_device_mappings.value, "delete_on_termination", true)
4646
volume_type = lookup(block_device_mappings.value, "volume_type", "gp3")
47-
volume_size = lookup(block_device_mappings.value, "volume_size", 30)
47+
volume_size = lookup(block_device_mappings.value, "volume_size", var.volume_size)
4848
encrypted = lookup(block_device_mappings.value, "encrypted", true)
4949
iops = lookup(block_device_mappings.value, "iops", null)
5050
}

Diff for: modules/runners/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -322,3 +322,9 @@ variable "runner_additional_security_group_ids" {
322322
type = list(string)
323323
default = []
324324
}
325+
326+
variable "volume_size" {
327+
description = "Size of runner volume"
328+
type = number
329+
default = 30
330+
}

Diff for: variables.tf

+8
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ variable "environment" {
2525
}
2626

2727
variable "enable_organization_runners" {
28+
description = "Register runners to organization, instead of repo level"
2829
type = bool
30+
default = false
2931
}
3032

3133
variable "github_app" {
@@ -346,3 +348,9 @@ variable "market_options" {
346348
type = string
347349
default = "spot"
348350
}
351+
352+
variable "volume_size" {
353+
description = "Size of runner volume"
354+
type = number
355+
default = 30
356+
}

0 commit comments

Comments
 (0)