Skip to content

Commit

Permalink
fix: add missing local.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored Nov 14, 2024
1 parent ca18b86 commit 1fe36ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1fe36ee

Please sign in to comment.