File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ resource "google_project_service" "enable_destination_api" {
3838resource "google_bigquery_dataset" "dataset" {
3939 dataset_id = " ${ var . dataset_name } "
4040 project = " ${ google_project_service . enable_destination_api . project } "
41-
41+ location = " ${ var . location } "
4242 # Delete all tables in dataset on destroy.
4343 # This is required because a dataset cannot be deleted if it contains any data.
4444 provisioner "local-exec" {
Original file line number Diff line number Diff line change @@ -25,3 +25,8 @@ variable "log_sink_writer_identity" {
2525variable "project_id" {
2626 description = " The ID of the project in which the bigquery dataset will be created."
2727}
28+
29+ variable "location" {
30+ description = " The location of the storage bucket."
31+ default = " US"
32+ }
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ resource "google_project_service" "enable_destination_api" {
3434resource "google_storage_bucket" "bucket" {
3535 name = " ${ var . storage_bucket_name } "
3636 project = " ${ google_project_service . enable_destination_api . project } "
37- storage_class = " MULTI_REGIONAL "
38- location = " US "
37+ storage_class = " ${ var . storage_class } "
38+ location = " ${ var . location } "
3939 force_destroy = true
4040}
4141
Original file line number Diff line number Diff line change @@ -25,3 +25,13 @@ variable "project_id" {
2525variable "storage_bucket_name" {
2626 description = " The name of the storage bucket to be created and used for log entries matching the filter."
2727}
28+
29+ variable "location" {
30+ description = " The location of the storage bucket."
31+ default = " US"
32+ }
33+
34+ variable "storage_class" {
35+ description = " The storage class of the storage bucket."
36+ default = " MULTI_REGIONAL"
37+ }
You can’t perform that action at this time.
0 commit comments