diff --git a/samples/pipeline.yaml b/samples/pipeline.yaml index 99b52c938..6022f45b6 100644 --- a/samples/pipeline.yaml +++ b/samples/pipeline.yaml @@ -32,6 +32,9 @@ resources: # table_id table_id: PIPELINE_FOLDER_NAME + # Description of the table + description: "This is a table description." + dag: # The DAG acronym stands for directed acyclic graph. This block represents # your data pipeline along with every property and configuration it needs to diff --git a/templates/terraform/google_bigquery_table.tf.jinja2 b/templates/terraform/google_bigquery_table.tf.jinja2 index 7154805c3..43fede553 100644 --- a/templates/terraform/google_bigquery_table.tf.jinja2 +++ b/templates/terraform/google_bigquery_table.tf.jinja2 @@ -20,12 +20,14 @@ resource "google_bigquery_table" "{{ table_id }}" { dataset_id = "{{ dataset_id }}" table_id = "{{ table_id }}" + {% if description -%} + description = "{{ description }}" + {%- endif %} {% if schema -%} schema = <