Skip to content

Commit

Permalink
🔧 for_each changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary-H9 committed Oct 21, 2024
1 parent 8d4ce1e commit 85ff8af
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ locals {
}

module "athena_source" {
for_each = toset(local.flattened_athena_configs)
for_each = {
for config in local.flattened_athena_configs : config.key => config
}

source = "../../grafana/athena-source"

name = each.value.key
name = each.key
account_id = each.value.account_id
athena_config = try(each.value, {})
}
Expand Down

0 comments on commit 85ff8af

Please sign in to comment.