From 0b41ed562a5c2e9a5128a9dc8741cf40bd87291f Mon Sep 17 00:00:00 2001 From: Lucas Telles Date: Mon, 2 Dec 2024 13:54:39 -0300 Subject: [PATCH] Remove empty strings from iam bucket list --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 9e6de590..bf8977e8 100644 --- a/main.tf +++ b/main.tf @@ -319,7 +319,7 @@ module "iam" { aws_primary_dns_role_arn = var.aws_primary_dns_role_arn efs_filesystem_id = [var.include_efs == true ? module.efs-storage[0].efs_filesystem_id : ""] fsx_arns = [var.include_rox ? module.fsx-storage[0].fsx-rox.arn : "", var.include_fsx == true ? module.fsx-storage[0].fsx-rwx.arn : ""] - s3_buckets = [module.s3-storage.data_s3_bucket_name, var.include_pgbackup ? module.s3-storage.pgbackup_s3_bucket_name : "", var.include_rox ? module.s3-storage.api_models_s3_bucket_name : "", lower("${var.aws_account}-aws-cod-snapshots"), var.performance_bucket ? "indico-locust-benchmark-test-results" : ""] + s3_buckets = compact([module.s3-storage.data_s3_bucket_name, var.include_pgbackup ? module.s3-storage.pgbackup_s3_bucket_name : "", var.include_rox ? module.s3-storage.api_models_s3_bucket_name : "", lower("${var.aws_account}-aws-cod-snapshots"), var.performance_bucket ? "indico-locust-benchmark-test-results" : ""]) kms_key_arn = module.kms_key.key_arn # s3 replication enable_s3_replication = var.enable_s3_replication