Skip to content

variable "volume_size" #830 #839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module "runners" {
idle_config = var.idle_config
enable_ssm_on_runners = var.enable_ssm_on_runners
runner_additional_security_group_ids = var.runner_additional_security_group_ids
volume_size = var.volume_size

lambda_s3_bucket = var.lambda_s3_bucket
runners_lambda_s3_key = var.runners_lambda_s3_key
Expand Down
2 changes: 1 addition & 1 deletion modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource "aws_launch_template" "runner" {
ebs {
delete_on_termination = lookup(block_device_mappings.value, "delete_on_termination", true)
volume_type = lookup(block_device_mappings.value, "volume_type", "gp3")
volume_size = lookup(block_device_mappings.value, "volume_size", 30)
volume_size = lookup(block_device_mappings.value, "volume_size", var.volume_size)
encrypted = lookup(block_device_mappings.value, "encrypted", true)
iops = lookup(block_device_mappings.value, "iops", null)
}
Expand Down
6 changes: 6 additions & 0 deletions modules/runners/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -322,3 +322,9 @@ variable "runner_additional_security_group_ids" {
type = list(string)
default = []
}

variable "volume_size" {
description = "Size of runner volume"
type = number
default = 30
}
10 changes: 9 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ variable "environment" {
}

variable "enable_organization_runners" {
type = bool
description = "Register runners to organization, instead of repo level"
type = bool
default = false
}

variable "github_app" {
Expand Down Expand Up @@ -346,3 +348,9 @@ variable "market_options" {
type = string
default = "spot"
}

variable "volume_size" {
description = "Size of runner volume"
type = number
default = 30
}