From 0916153a402ed8ac8a5fee7cee46739af76f6fbb Mon Sep 17 00:00:00 2001 From: Brend Smits Date: Thu, 11 Jun 2026 14:14:34 +0200 Subject: [PATCH] fix(runners): fix type mismatch in pool role conditional The conditional for the runner role in pool.tf returned inconsistent types: the true branch produced an object with a single 'arn' attribute while the false branch returned the full aws_iam_role resource (16 attributes). Terraform requires both branches to have consistent types. Move the conditional inside the object so both branches produce a string for the 'arn' key. Fixes type error introduced in #4875. Signed-off-by: Brend Smits --- modules/runners/pool.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/runners/pool.tf b/modules/runners/pool.tf index 16df2d15d1..ae82f3f127 100644 --- a/modules/runners/pool.tf +++ b/modules/runners/pool.tf @@ -51,7 +51,7 @@ module "pool" { group_name = var.runner_group_name name_prefix = var.runner_name_prefix pool_owner = var.pool_runner_owner - role = var.iam_overrides["override_runner_role"] ? { arn = var.iam_overrides["runner_role_arn"] } : aws_iam_role.runner[0] + role = { arn = var.iam_overrides["override_runner_role"] ? var.iam_overrides["runner_role_arn"] : aws_iam_role.runner[0].arn } use_dedicated_host = var.use_dedicated_host } subnet_ids = var.subnet_ids