From be39eb1d7e933cf503ab599378915fc313419acf Mon Sep 17 00:00:00 2001 From: bwmac Date: Mon, 11 Nov 2024 15:15:04 -0500 Subject: [PATCH] give bucket unique name --- deployments/stacks/dpe-k8s-deployments/main.tf | 3 +-- modules/s3-bucket/main.tf | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/deployments/stacks/dpe-k8s-deployments/main.tf b/deployments/stacks/dpe-k8s-deployments/main.tf index 7bedc3b1..1945b4ea 100644 --- a/deployments/stacks/dpe-k8s-deployments/main.tf +++ b/deployments/stacks/dpe-k8s-deployments/main.tf @@ -154,6 +154,5 @@ module "cert-manager" { module "clickhouse_backup_bucket" { source = "../../../modules/s3-bucket" - - bucket_name = "clickhouse-backup" + bucket_name = "clickhouse-backup-${var.aws_account_id}" } diff --git a/modules/s3-bucket/main.tf b/modules/s3-bucket/main.tf index fcd2c7c1..967a0b36 100644 --- a/modules/s3-bucket/main.tf +++ b/modules/s3-bucket/main.tf @@ -1,6 +1,5 @@ resource "aws_s3_bucket" "bucket" { bucket = var.bucket_name - tags = merge( var.tags, {