Skip to content

Commit

Permalink
fix: Event bus data source count conditional (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: magreenbaum <magreenbaum>
  • Loading branch information
magreenbaum committed Jan 12, 2024
1 parent 6d2d61d commit ebe5963
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 @@ -56,7 +56,7 @@ locals {
}

data "aws_cloudwatch_event_bus" "this" {
count = (var.create && var.create_bus) || (var.bus_name == "") ? 0 : 1
count = var.create && var.create_bus ? 0 : 1

name = var.bus_name
}
Expand Down

0 comments on commit ebe5963

Please sign in to comment.