diff --git a/.bumpversion.cfg b/.bumpversion.cfg index afe130f..4174d31 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.2.0 +current_version = 2.2.1 commit = True message = Bumps version to {new_version} tag = False diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd5410..448422e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +### [2.2.1](https://github.com/plus3it/terraform-aws-tardigrade-cloudwatch-events/releases/tag/2.0.1) + +**Released**: 2024.07.26 + +**Summary**: + +* minor patch to address constraint with import targets for custom event-bus name interpolation + ### [2.2.0](https://github.com/plus3it/terraform-aws-tardigrade-cloudwatch-events/releases/tag/2.0.0) **Released**: 2024.07.23 diff --git a/main.tf b/main.tf index faf3f37..48de7b1 100644 --- a/main.tf +++ b/main.tf @@ -13,7 +13,7 @@ resource "aws_cloudwatch_event_target" "this" { for_each = { for target in var.event_rule.event_targets : target.name => target } arn = each.value.arn - rule = aws_cloudwatch_event_rule.this.id + rule = var.event_rule.name target_id = each.value.target_id role_arn = each.value.role_arn event_bus_name = each.value.event_bus_name @@ -48,4 +48,6 @@ resource "aws_cloudwatch_event_target" "this" { } } + + depends_on = [ aws_cloudwatch_event_rule.this ] }