Add outputs to BigQuery dataset module (#1752)
* Add outputs * Fix checks * Fix order * Fix order * Fix var * Fix outputs * Fix README.md
This commit is contained in:
parent
85d2b8b093
commit
3949fdc283
|
@ -294,7 +294,7 @@ module "bigquery-dataset" {
|
|||
| [iam](variables.tf#L92) | IAM bindings in {ROLE => [MEMBERS]} format. Mutually exclusive with the access_* variables used for basic roles. | <code>map(list(string))</code> | | <code>{}</code> |
|
||||
| [labels](variables.tf#L103) | Dataset labels. | <code>map(string)</code> | | <code>{}</code> |
|
||||
| [location](variables.tf#L109) | Dataset location. | <code>string</code> | | <code>"EU"</code> |
|
||||
| [materialized_views](variables.tf#L115) | Materialized views definitions. | <code title="map(object({ query = string deletion_protection = optional(bool) description = optional(string, "Terraform managed.") friendly_name = optional(string) labels = optional(map(string), {}) enable_refresh = optional(bool) refresh_interval_ms = optional(bool) allow_non_incremental_definition = optional(bool) options = optional(object({ clustering = optional(list(string)) expiration_time = optional(number) }), {}) partitioning = optional(object({ field = optional(string) range = optional(object({ end = number interval = number start = number })) time = optional(object({ type = string expiration_ms = optional(number) field = optional(string) require_partition_filter = optional(bool) })) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [materialized_views](variables.tf#L115) | Materialized views definitions. | <code title="map(object({ query = string allow_non_incremental_definition = optional(bool) deletion_protection = optional(bool) description = optional(string, "Terraform managed.") enable_refresh = optional(bool) friendly_name = optional(string) labels = optional(map(string), {}) refresh_interval_ms = optional(bool) options = optional(object({ clustering = optional(list(string)) expiration_time = optional(number) }), {}) partitioning = optional(object({ field = optional(string) range = optional(object({ end = number interval = number start = number })) time = optional(object({ type = string expiration_ms = optional(number) field = optional(string) require_partition_filter = optional(bool) })) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [options](variables.tf#L148) | Dataset options. | <code title="object({ default_collation = optional(string) default_table_expiration_ms = optional(number) default_partition_expiration_ms = optional(number) delete_contents_on_destroy = optional(bool, false) is_case_insensitive = optional(bool) max_time_travel_hours = optional(number, 168) storage_billing_model = optional(string) })">object({…})</code> | | <code>{}</code> |
|
||||
| [tables](variables.tf#L167) | Table definitions. Options and partitioning default to null. Partitioning can only use `range` or `time`, set the unused one to null. | <code title="map(object({ deletion_protection = optional(bool) description = optional(string, "Terraform managed.") friendly_name = optional(string) labels = optional(map(string), {}) schema = optional(string) options = optional(object({ clustering = optional(list(string)) encryption_key = optional(string) expiration_time = optional(number) }), {}) partitioning = optional(object({ field = optional(string) range = optional(object({ end = number interval = number start = number })) time = optional(object({ type = string expiration_ms = optional(number) field = optional(string) require_partition_filter = optional(bool) })) })) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
| [views](variables.tf#L198) | View definitions. | <code title="map(object({ query = string deletion_protection = optional(bool) description = optional(string, "Terraform managed.") friendly_name = optional(string) labels = optional(map(string), {}) use_legacy_sql = optional(bool) }))">map(object({…}))</code> | | <code>{}</code> |
|
||||
|
@ -306,9 +306,11 @@ module "bigquery-dataset" {
|
|||
| [dataset](outputs.tf#L17) | Dataset resource. | |
|
||||
| [dataset_id](outputs.tf#L22) | Dataset id. | |
|
||||
| [id](outputs.tf#L36) | Fully qualified dataset id. | |
|
||||
| [self_link](outputs.tf#L50) | Dataset self link. | |
|
||||
| [table_ids](outputs.tf#L64) | Map of fully qualified table ids keyed by table ids. | |
|
||||
| [tables](outputs.tf#L69) | Table resources. | |
|
||||
| [view_ids](outputs.tf#L74) | Map of fully qualified view ids keyed by view ids. | |
|
||||
| [views](outputs.tf#L79) | View resources. | |
|
||||
| [materialized_view_ids](outputs.tf#L50) | Map of fully qualified materialized view ids keyed by view ids. | |
|
||||
| [materialized_views](outputs.tf#L55) | Materialized view resources. | |
|
||||
| [self_link](outputs.tf#L60) | Dataset self link. | |
|
||||
| [table_ids](outputs.tf#L74) | Map of fully qualified table ids keyed by table ids. | |
|
||||
| [tables](outputs.tf#L79) | Table resources. | |
|
||||
| [view_ids](outputs.tf#L84) | Map of fully qualified view ids keyed by view ids. | |
|
||||
| [views](outputs.tf#L89) | View resources. | |
|
||||
<!-- END TFDOC -->
|
||||
|
|
|
@ -47,6 +47,16 @@ output "id" {
|
|||
]
|
||||
}
|
||||
|
||||
output "materialized_view_ids" {
|
||||
description = "Map of fully qualified materialized view ids keyed by view ids."
|
||||
value = { for k, v in google_bigquery_table.materialized_view : v.table_id => v.id }
|
||||
}
|
||||
|
||||
output "materialized_views" {
|
||||
description = "Materialized view resources."
|
||||
value = google_bigquery_table.materialized_view
|
||||
}
|
||||
|
||||
output "self_link" {
|
||||
description = "Dataset self link."
|
||||
value = google_bigquery_dataset.default.self_link
|
||||
|
|
|
@ -116,13 +116,13 @@ variable "materialized_views" {
|
|||
description = "Materialized views definitions."
|
||||
type = map(object({
|
||||
query = string
|
||||
allow_non_incremental_definition = optional(bool)
|
||||
deletion_protection = optional(bool)
|
||||
description = optional(string, "Terraform managed.")
|
||||
enable_refresh = optional(bool)
|
||||
friendly_name = optional(string)
|
||||
labels = optional(map(string), {})
|
||||
enable_refresh = optional(bool)
|
||||
refresh_interval_ms = optional(bool)
|
||||
allow_non_incremental_definition = optional(bool)
|
||||
options = optional(object({
|
||||
clustering = optional(list(string))
|
||||
expiration_time = optional(number)
|
||||
|
|
Loading…
Reference in New Issue