Skip to content

Commit

Permalink
Use the multi-variable for when walking a map type. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor authored Dec 20, 2023
1 parent 542e641 commit 0280d33
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 0280d33

Please sign in to comment.