Skip to content

Commit

Permalink
fix condition for access logs bucket creation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Devyatkin <andrey.devyatkin@fivexl.io>
  • Loading branch information
Andrey9kin committed Oct 23, 2024
1 parent ace9845 commit 25a4778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/target/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module "target_bucket_access_logs_bucket" {
source = "fivexl/account-baseline/aws//modules/region_level"
version = "1.3.7"

count = var.target_bucket_access_logs_bucket_name != null ? 1 : 0
count = var.target_bucket_access_logs_bucket_name == null ? 1 : 0

s3_access_logs_bucket_name = var.target_bucket_access_logs_bucket_name != null ? var.target_bucket_access_logs_bucket_name : local.target_bucket_access_logs_bucket_name
create_dynamodb_tf_state_lock = false
Expand Down

0 comments on commit 25a4778

Please sign in to comment.