Skip to content

Commit

Permalink
fix: Change count to for each
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCharlesHay authored Jan 30, 2024
1 parent 0a185cd commit 756066f
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 @@ -115,7 +115,7 @@ resource "aws_lambda_function" "this" {
dynamic "logging_config" {
# Dont create logging config on gov cloud as it is not avaible.
# See https://github.com/hashicorp/terraform-provider-aws/issues/34810
count = data.aws_partition.current.partition == "aws" ? [true] : []
for_each = data.aws_partition.current.partition == "aws" ? [true] : []

content {
log_group = var.logging_log_group
Expand Down

0 comments on commit 756066f

Please sign in to comment.