From 3d6d8093fa54d7f5516ef762a873ffa67a2769a0 Mon Sep 17 00:00:00 2001 From: Kevin Parasseril Date: Fri, 8 Dec 2023 15:40:16 +0530 Subject: [PATCH 1/2] Add force destroy flag and rename spotify bucket --- terraform/storage.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/storage.tf b/terraform/storage.tf index 283cbc4..92162fd 100644 --- a/terraform/storage.tf +++ b/terraform/storage.tf @@ -6,7 +6,7 @@ module "gcs_api_extract" { version = "~> 3.4" project_id = local.id location = local.gs_region - names = ["spotify-web-api-extracts"] + names = ["rawg-api-extracts"] prefix = local.name set_admin_roles = true # admins = ["group:${local.owner}"] @@ -33,6 +33,7 @@ module "flyte_gcs_backend" { location = local.gs_region names = ["flyte-storage-backend"] prefix = local.name + force_destroy = true set_admin_roles = true # admins = ["group:${local.owner}"] versioning = { From 7c138cf38363f3db03b732ff3c47c6635764b0fa Mon Sep 17 00:00:00 2001 From: Kevin Parasseril Date: Fri, 8 Dec 2023 18:18:50 +0530 Subject: [PATCH 2/2] commented flyte gcs bucket --- terraform/storage.tf | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/terraform/storage.tf b/terraform/storage.tf index 92162fd..2c7e8d7 100644 --- a/terraform/storage.tf +++ b/terraform/storage.tf @@ -26,25 +26,25 @@ module "gcs_api_extract" { ############################################################################################################# # GCS Bucket for Flyte orchestrator Backend ############################################################################################################# -module "flyte_gcs_backend" { - source = "terraform-google-modules/cloud-storage/google" - version = "~> 3.4" - project_id = local.id - location = local.gs_region - names = ["flyte-storage-backend"] - prefix = local.name - force_destroy = true - set_admin_roles = true - # admins = ["group:${local.owner}"] - versioning = { - terraform-state = true - } - bucket_admins = { - second = "user:${local.owner}" - } +# module "flyte_gcs_backend" { +# source = "terraform-google-modules/cloud-storage/google" +# version = "~> 3.4" +# project_id = local.id +# location = local.gs_region +# names = ["flyte-storage-backend"] +# prefix = local.name +# force_destroy = lookup() +# set_admin_roles = true +# # admins = ["group:${local.owner}"] +# versioning = { +# terraform-state = true +# } +# bucket_admins = { +# second = "user:${local.owner}" +# } - labels = { - project_name = local.name - project_workspace = local.id - } -} \ No newline at end of file +# labels = { +# project_name = local.name +# project_workspace = local.id +# } +# } \ No newline at end of file