-
Notifications
You must be signed in to change notification settings - Fork 166
fix: Use externally created eventbus for event archive when create_bus
is set to false
#176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Use externally created eventbus for event archive when create_bus
is set to false
#176
Conversation
8bd6b6b
to
11f6db8
Compare
This PR has been automatically marked as stale because it has been open 30 days |
This PR has been automatically marked as stale because it has been open 30 days |
|
||
name = lookup(each.value, "name", each.key) | ||
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks like a valid change, can we remove all the other changes?
11f6db8
to
65202cc
Compare
create_bus
is set to false
create_bus
is set to false
create_bus
is set to false
## [4.2.1](v4.2.0...v4.2.1) (2025-10-06) ### Bug Fixes * Use externally created eventbus for event archive when `create_bus` is set to `false` ([#176](#176)) ([e30c402](e30c402))
This PR is included in version 4.2.1 🎉 |
Description
Allow to use eventbus data for event archive when create_bus is set to false
Motivation and Context
In case of create_bus is set to false, we can't use the aws_cloudwatch_event_bus data in aws_cloudwatch_event_archive resource. we have to set a new data in root module and use it in archives.event_source_arn. This feature allow to directly use the data of the child module if it's desired
Breaking Changes
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request