From 92cbff9cfda508dce331d062ddbdbe8ce36017a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Lechowicz?= <owad@users.noreply.github.com>
Date: Thu, 7 Apr 2022 12:29:07 +0200
Subject: [PATCH 1/3] chore: Fixed typo in `create_rules` in the README file
 (#50)

---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

From e1538986d9431dcb01795458ced24d7e28cae108 Mon Sep 17 00:00:00 2001
From: "Starodubov, Vladimir" <3694552+v-starodubov@users.noreply.github.com>
Date: Thu, 23 Jun 2022 18:31:29 +0300
Subject: [PATCH 2/3] fix: Enable run_command_targets support for target (#54)

---
 main.tf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

From 75c970addccc7a643c8088dce38c6a3856a5f6e2 Mon Sep 17 00:00:00 2001
From: semantic-release-bot <semantic-release-bot@martynus.net>
Date: Thu, 23 Jun 2022 15:32:02 +0000
Subject: [PATCH 3/3] chore(release): version 1.14.1 [skip ci]

### [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))
---
 CHANGELOG.md | 7 +++++++
 1 file changed, 7 insertions(+)

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)