Skip to content

Commit

Permalink
Fix data catalog tag module
Browse files Browse the repository at this point in the history
  • Loading branch information
lcaggio authored Feb 17, 2024
1 parent 3ffd574 commit 39b7133
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions modules/data-catalog-tag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module "data-catalog-tag" {
"landing/countries" = {
project_id = "project-data-product"
parent = "projects/project-data-product/datasets/landing"
location = "europe-west-1"
location = "europe-west1"
template = "projects/project-datagov/locations/europe-west1/tagTemplates/demo"
fields = {
source = "DB-1"
Expand All @@ -37,7 +37,7 @@ module "data-catalog-tag" {
"landing/countries" = {
project_id = "project-data-product"
parent = "projects/project-data-product/datasets/landing/tables/countries"
location = "europe-west-1"
location = "europe-west1"
template = "projects/project-datagov/locations/europe-west1/tagTemplates/demo"
fields = {
source = "DB-1 Table-A"
Expand All @@ -58,7 +58,7 @@ module "data-catalog-tag" {
project_id = "project-data-product"
parent = "projects/project-data-product/datasets/landing/tables/countries"
column = "country"
location = "europe-west-1"
location = "europe-west1"
template = "projects/project-datagov/locations/europe-west1/tagTemplates/demo"
fields = {
source = "DB-1 Table-A Column-B"
Expand Down Expand Up @@ -87,7 +87,7 @@ module "data-catalog-tag" {
project_id = "project-data-product"
parent = "projects/project-data-product/datasets/landing/tables/countries"
column = "country"
location = "europe-west-1"
location = "europe-west1"
template = "projects/project-datagov/locations/europe-west1/tagTemplates/demo"
fields = {
source = "DB-1 Table-A Column-B"
Expand All @@ -106,6 +106,7 @@ module "data-catalog-tag" {

project_id: project-data-product
parent: projects/project-data-product/datasets/exposure
location: europe-west1
template: projects/project-datagov/locations/europe-west1/tagTemplates/test
fields:
owner_email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion modules/data-catalog-tag/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ locals {

resource "google_data_catalog_tag" "engine" {
for_each = local.factory_tag_template
parent = "projects/${each.value.project_id}/locations/${each.value.project_id}/entryGroups/@bigquery/entries/${trim(base64encode(each.value.parent), "=")}"
parent = "projects/${each.value.project_id}/locations/${each.value.location}/entryGroups/@bigquery/entries/${trim(base64encode(each.value.parent), "=")}"
column = try(each.value.column, null)
template = each.value.template
dynamic "fields" {
Expand Down

0 comments on commit 39b7133

Please sign in to comment.