Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cabea33

Browse files
authoredSep 9, 2022
Merge branch 'master' into tags-for-iam
2 parents a81344a + 40ca3fe commit cabea33

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
### [1.14.3](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/compare/v1.14.2...v1.14.3) (2022-09-08)
6+
7+
8+
### Bug Fixes
9+
10+
* Problems found when importing resources previously already created ([#61](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/issues/61)) ([015122e](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/commit/015122e9a7204ef35b7812781e076d861d5945b5))
11+
512
### [1.14.2](https://github.com/terraform-aws-modules/terraform-aws-eventbridge/compare/v1.14.1...v1.14.2) (2022-07-28)
613

714

‎iam.tf

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ resource "aws_iam_policy" "additional_json" {
347347
count = local.create_role && var.attach_policy_json ? 1 : 0
348348

349349
name = local.role_name
350+
path = var.role_path
350351
policy = var.policy_json
351352

352353
tags = merge(var.tags, { Name = local.role_name })

‎outputs.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ output "eventbridge_api_destination_arns" {
4141
# EventBridge Rule
4242
output "eventbridge_rule_ids" {
4343
description = "The EventBridge Rule IDs created"
44-
value = { for k in sort(keys(var.rules)) : k => aws_cloudwatch_event_rule.this[k].id if var.create && var.create_rules }
44+
value = { for k in sort(keys(var.rules)) : k => try(aws_cloudwatch_event_rule.this[k].id, null) if var.create && var.create_rules }
4545
}
4646

4747
output "eventbridge_rule_arns" {
4848
description = "The EventBridge Rule ARNs created"
49-
value = { for k in sort(keys(var.rules)) : k => aws_cloudwatch_event_rule.this[k].arn if var.create && var.create_rules }
49+
value = { for k in sort(keys(var.rules)) : k => try(aws_cloudwatch_event_rule.this[k].arn, null) if var.create && var.create_rules }
5050
}
5151

5252
# IAM Role

0 commit comments

Comments
 (0)
Please sign in to comment.