Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit e1bdfaf

Browse files
committed
fix: Invalid iteration syntax
1 parent 937a357 commit e1bdfaf

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/complete/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ EOT
182182
}
183183
]
184184

185+
deploy_keys = [
186+
{
187+
title = "Deploy Key"
188+
key = "some-ssh-key"
189+
read_only = true
190+
}
191+
]
192+
185193
dependabot_security_updates_enabled = true
186194

187195
issue_labels = [

modules/actions/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module "secrets_and_variables" {
6868
}
6969

7070
resource "github_repository_deploy_key" "this" {
71-
for_each = toset(var.deploy_keys)
71+
for_each = { for deploy_key in var.deploy_keys : deploy_key.title => deploy_key }
7272

7373
repository = var.repository
7474
key = each.value.key

0 commit comments

Comments
 (0)