Randomize temp storage bucket.

This commit is contained in:
Tom Alexander 2021-07-22 22:01:57 -04:00
parent ed106036dd
commit 09c7cc8d03
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -99,9 +99,13 @@ resource "google_project_service" "dataflow" {
disable_dependent_services = true
}
resource "random_id" "temp_storage" {
byte_length = 4
}
resource "google_storage_bucket" "temp_storage" {
project = var.project
name = "${var.project}-bigquery-etl"
name = "${var.project}-etl-temp-${random_id.temp_storage.hex}"
force_destroy = true
}