File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ module "bigquery" {
101101 env = "dev"
102102 billable = "true"
103103 }
104+ resource_tags = {
105+ short_name = "123456789012/environment"
106+ }
104107}
105108```
106109
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ resource "google_bigquery_dataset" "main" {
3838 max_time_travel_hours = var. max_time_travel_hours
3939 project = var. project_id
4040 labels = var. dataset_labels
41-
41+ resource_tags = var . resource_tags
4242 dynamic "default_encryption_configuration" {
4343 for_each = var. encryption_key == null ? [] : [var . encryption_key ]
4444 content {
Original file line number Diff line number Diff line change @@ -77,6 +77,11 @@ variable "dataset_labels" {
7777 type = map (string )
7878 default = {}
7979}
80+ variable "resource_tags" {
81+ description = " A map of resource tags to add to the dataset"
82+ type = map (string )
83+ default = {}
84+ }
8085
8186# Format: list(objects)
8287# domain: A domain to grant access to.
You can’t perform that action at this time.
0 commit comments