We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2259aaf commit 40e2a53Copy full SHA for 40e2a53
modules/webhook/webhook.tf
@@ -24,11 +24,11 @@ locals {
24
}
25
26
resource "aws_ssm_parameter" "runner_matcher_config" {
27
- for_each = { for idx, val in local.matcher_chunks : idx => val }
+ count = length(local.matcher_chunks)
28
29
- name = "${var.ssm_paths.root}/${var.ssm_paths.webhook}/runner-matcher-config${length(local.matcher_chunks) > 1 ? "-${each.key}" : ""}"
+ name = "${var.ssm_paths.root}/${var.ssm_paths.webhook}/runner-matcher-config${length(local.matcher_chunks) > 1 ? "-${count.index}" : ""}"
30
type = "String"
31
- value = each.value
+ value = local.matcher_chunks[count.index]
32
tier = var.matcher_config_parameter_store_tier
33
34
0 commit comments