Skip to content

Commit

Permalink
chore: fix incorrect local
Browse files Browse the repository at this point in the history
  • Loading branch information
johncblandii committed Nov 4, 2021
1 parent c77c6d0 commit 9e6f25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ module "log_storage" {
}

locals {
logging_bucket_name = local.logging_bucket_enabled ? module.log_storage.bucket_id : local.logging_bucket_default
logging_bucket_name = local.logging_bucket_enabled ? module.log_storage.bucket_id : local.logging_bucket_name_default
logging_prefix = local.logging_bucket_enabled ? module.log_storage.prefix : local.logging_prefix_default
}

Expand Down Expand Up @@ -252,7 +252,7 @@ resource "aws_dynamodb_table" "with_server_side_encryption" {
}

resource "aws_dynamodb_table" "without_server_side_encryption" {
count = local.dynamodb_enabled && ! var.enable_server_side_encryption ? 1 : 0
count = local.dynamodb_enabled && !var.enable_server_side_encryption ? 1 : 0
name = local.dynamodb_table_name
billing_mode = var.billing_mode
read_capacity = var.billing_mode == "PROVISIONED" ? var.read_capacity : null
Expand Down

0 comments on commit 9e6f25d

Please sign in to comment.