From 1fe36ee35693ec899402d533b139cf7942b26ce5 Mon Sep 17 00:00:00 2001 From: RB <7775707+nitrocode@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:19:28 -0600 Subject: [PATCH] fix: add missing local.enabled --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 256b492..40ccda5 100644 --- a/main.tf +++ b/main.tf @@ -615,7 +615,7 @@ resource "aws_s3_bucket_notification" "bucket_notification" { /// Directory Bucket // https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_directory_bucket resource "aws_s3_directory_bucket" "default" { - count = var.s3_directory_bucket_enabled ? 1 : 0 + count = local.enabled && var.s3_directory_bucket_enabled ? 1 : 0 bucket = local.directory_bucket_name force_destroy = var.force_destroy