Skip to content

Commit 8b46d4e

Browse files
committed
jsonencode env vars
1 parent 19a92ce commit 8b46d4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

outputs.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ output "routine_ids" {
9898
output "env_vars" {
9999
value = {
100100
"BIGQUERY_DATASET" = google_bigquery_dataset.main.dataset_id
101-
"BIGQUERY_TABLES" = join(",", [for table in google_bigquery_table.main : table.table_id])
102-
"BIGQUERY_VIEWS" = join(",", [for table in google_bigquery_table.view : table.table_id])
103-
"BIGQUERY_MATERIALIZED_VIEWS" = join(",", [for table in google_bigquery_table.materialized_view : table.table_id])
104-
"BIGQUERY_EXTERNAL_TABLES" = join(",", [for table in google_bigquery_table.external_table : table.table_id])
105-
"BIGQUERY_ROUTINES" = join(",", [for routine in google_bigquery_routine.routine : routine.routine_id])
101+
"BIGQUERY_TABLES" = jsonencode([for table in google_bigquery_table.main : table.table_id])
102+
"BIGQUERY_VIEWS" = jsonencode([for table in google_bigquery_table.view : table.table_id])
103+
"BIGQUERY_MATERIALIZED_VIEWS" = jsonencode([for table in google_bigquery_table.materialized_view : table.table_id])
104+
"BIGQUERY_EXTERNAL_TABLES" = jsonencode([for table in google_bigquery_table.external_table : table.table_id])
105+
"BIGQUERY_ROUTINES" = jsonencode([for routine in google_bigquery_routine.routine : routine.routine_id])
106106
}
107107
description = "Exported environment variables"
108108
}

0 commit comments

Comments
 (0)