Skip to content

Commit

Permalink
Use the multi-variable for when walking a map type.
Browse files Browse the repository at this point in the history
The previous "fix" was still broken, but this cleanly applies with my local example changed to use the recorder.

Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor committed Dec 20, 2023
1 parent 542e641 commit a2f91a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cloudevent-recorder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ module "foo-emits-events" {
retention-period = 30 // keep around 30 days worth of event data
types = {
"com.example.foo": file("${path.module}/foo.schema.json"),
"com.example.bar": file("${path.module}/bar.schema.json"),
}
types = {
"com.example.foo": file("${path.module}/foo.schema.json"),
"com.example.bar": file("${path.module}/bar.schema.json"),
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion cloudevent-recorder/recorder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ module "recorder-dashboard" {
service_name = var.name

triggers = {
for type in var.types : "type: ${type}" => "${var.name}-${random_id.trigger-suffix[type].hex}"
for type, schema in var.types : "type: ${type}" => "${var.name}-${random_id.trigger-suffix[type].hex}"
}
}

0 comments on commit a2f91a5

Please sign in to comment.