Skip to content

Instantly share code, notes, and snippets.

@eblaauw
Created May 11, 2022 14:17
Show Gist options
  • Save eblaauw/97a93cc35a5dafc3cfb6b9fb9d0d0b3c to your computer and use it in GitHub Desktop.
Save eblaauw/97a93cc35a5dafc3cfb6b9fb9d0d0b3c to your computer and use it in GitHub Desktop.
terraform_foreach
resource "google_bigquery_dataset" "mapped_datasets" {
for_each = local.datasets
dataset_id = each.key
description = each.value.description
location = "EU"
labels = {
is_critical = each.value.is_critical
team = each.value.team
created_by = "terraform"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment