diff --git a/CHANGELOG.md b/CHANGELOG.md index 2722b6b..125dbf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +### [1.14.1](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/compare/v1.14.0...v1.14.1) (2022-06-23) + + +### Bug Fixes + +* Enable run_command_targets support for target ([#54](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/issues/54)) ([e153898](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/commit/e1538986d9431dcb01795458ced24d7e28cae108)) + ## [1.14.0](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/compare/v1.13.4...v1.14.0) (2022-02-04) diff --git a/README.md b/README.md index 0cb49cd..06e59fe 100644 --- a/README.md +++ b/README.md @@ -317,7 +317,7 @@ module "eventbridge" { create = false # to disable all resources create_bus = false # to control creation of the EventBridge Bus and related resources - create_rule = false # to control creation of EventBridge Rules and related resources + create_rules = false # to control creation of EventBridge Rules and related resources create_targets = false # to control creation of EventBridge Targets and related resources create_archives = false # to control creation of EventBridge Archives create_permissions = false # to control creation of EventBridge Permissions diff --git a/main.tf b/main.tf index 35998eb..1e107e7 100644 --- a/main.tf +++ b/main.tf @@ -72,7 +72,7 @@ resource "aws_cloudwatch_event_target" "this" { input_path = lookup(each.value, "input_path", null) dynamic "run_command_targets" { - for_each = lookup(each.value, "run_command_targets", null) != null ? [true] : [] + for_each = try([each.value.run_command_targets], []) content { key = run_command_targets.value.key