change access variables in bigquery-dataset to support dyamic values
This commit is contained in:
@@ -20,18 +20,39 @@ output "dataset" {
|
||||
}
|
||||
|
||||
output "dataset_id" {
|
||||
description = "Dataset full id."
|
||||
description = "Dataset id."
|
||||
value = google_bigquery_dataset.default.dataset_id
|
||||
depends_on = [
|
||||
google_bigquery_dataset_access.domain,
|
||||
google_bigquery_dataset_access.group_by_email,
|
||||
google_bigquery_dataset_access.special_group,
|
||||
google_bigquery_dataset_access.user_by_email,
|
||||
google_bigquery_dataset_access.views
|
||||
]
|
||||
}
|
||||
|
||||
output "id" {
|
||||
description = "Dataset id."
|
||||
description = "Fully qualified dataset id."
|
||||
value = google_bigquery_dataset.default.id
|
||||
depends_on = [
|
||||
google_bigquery_dataset_access.domain,
|
||||
google_bigquery_dataset_access.group_by_email,
|
||||
google_bigquery_dataset_access.special_group,
|
||||
google_bigquery_dataset_access.user_by_email,
|
||||
google_bigquery_dataset_access.views
|
||||
]
|
||||
}
|
||||
|
||||
output "self_link" {
|
||||
description = "Dataset self link."
|
||||
value = google_bigquery_dataset.default.self_link
|
||||
depends_on = [
|
||||
google_bigquery_dataset_access.domain,
|
||||
google_bigquery_dataset_access.group_by_email,
|
||||
google_bigquery_dataset_access.special_group,
|
||||
google_bigquery_dataset_access.user_by_email,
|
||||
google_bigquery_dataset_access.views
|
||||
]
|
||||
}
|
||||
|
||||
output "tables" {
|
||||
@@ -39,7 +60,17 @@ output "tables" {
|
||||
value = google_bigquery_table.default
|
||||
}
|
||||
|
||||
output "table_ids" {
|
||||
description = "Map of fully qualified table ids keyed by table ids."
|
||||
value = { for k, v in google_bigquery_table.default : v.table_id => v.id }
|
||||
}
|
||||
|
||||
output "views" {
|
||||
description = "View resources."
|
||||
value = google_bigquery_table.views
|
||||
}
|
||||
|
||||
output "view_ids" {
|
||||
description = "Map of fully qualified view ids keyed by view ids."
|
||||
value = { for k, v in google_bigquery_table.views : v.table_id => v.id }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user