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 ef5ace6 commit 4ad52afCopy full SHA for 4ad52af
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
tags = var.tags
34
0 commit comments