We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e8657c commit 9309392Copy full SHA for 9309392
main.tf
@@ -285,7 +285,7 @@ resource "aws_cloudwatch_event_archive" "this" {
285
region = var.region
286
287
name = lookup(each.value, "name", each.key)
288
- event_source_arn = try(each.value["event_source_arn"], aws_cloudwatch_event_bus.this[0].arn)
+ event_source_arn = try(each.value["event_source_arn"], var.create_bus ? aws_cloudwatch_event_bus.this[0].arn : data.aws_cloudwatch_event_bus.this[0].arn)
289
290
description = lookup(each.value, "description", null)
291
event_pattern = lookup(each.value, "event_pattern", null)
0 commit comments