From 07128e700361f25562ed8a8a57ff5cd4daa7c445 Mon Sep 17 00:00:00 2001 From: alexshe Date: Thu, 9 May 2024 16:28:59 +0300 Subject: [PATCH 1/2] feat: Add variable to configure ebs optimization for runner instances --- README.md | 1 + main.tf | 1 + variables.tf | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 651d3236b6..fe9abed7a6 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,7 @@ Talk to the forestkeepers in the `runners-channel` on Slack. | [webhook\_lambda\_timeout](#input\_webhook\_lambda\_timeout) | Time out of the webhook lambda in seconds. | `number` | `10` | no | | [webhook\_lambda\_zip](#input\_webhook\_lambda\_zip) | File location of the webhook lambda zip file. | `string` | `null` | no | | [workflow\_job\_queue\_configuration](#input\_workflow\_job\_queue\_configuration) | Configuration options for workflow job queue which is only applicable if the flag enable\_workflow\_job\_events\_queue is set to true. |
object({
delay_seconds = number
visibility_timeout_seconds = number
message_retention_seconds = number
})
|
{
"delay_seconds": null,
"message_retention_seconds": null,
"visibility_timeout_seconds": null
}
| no | +| [runner\_ebs\_optimized](#input\_runner\_ebs\_optimized) | Whether the runner instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. | `bool` | `false` | no | ## Outputs diff --git a/main.tf b/main.tf index 645bb6d2f1..122fe93a3d 100644 --- a/main.tf +++ b/main.tf @@ -288,6 +288,7 @@ module "runners" { pool_lambda_reserved_concurrent_executions = var.pool_lambda_reserved_concurrent_executions ssm_housekeeper = var.runners_ssm_housekeeper + ebs_optimized = var.runners_ebs_optimized } module "runner_binaries" { diff --git a/variables.tf b/variables.tf index 51bd7d8e10..0389b005b3 100644 --- a/variables.tf +++ b/variables.tf @@ -884,3 +884,9 @@ variable "instance_termination_watcher" { }) default = {} } + +variable "runners_ebs_optimized" { + description = "Enable EBS optimization for the runner instances." + type = bool + default = false +} From 2c2e38b80e749563ae09c32c1878eabc4d372fe1 Mon Sep 17 00:00:00 2001 From: alexshe Date: Sun, 19 May 2024 12:56:59 +0300 Subject: [PATCH 2/2] fix: format tf file --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 122fe93a3d..1617b10d41 100644 --- a/main.tf +++ b/main.tf @@ -288,7 +288,7 @@ module "runners" { pool_lambda_reserved_concurrent_executions = var.pool_lambda_reserved_concurrent_executions ssm_housekeeper = var.runners_ssm_housekeeper - ebs_optimized = var.runners_ebs_optimized + ebs_optimized = var.runners_ebs_optimized } module "runner_binaries" {