-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_cloudwatch_event_rule does not support partner event bus for association #18866
Comments
@overlordchin Thanks for raising this issue. This looks similar to #18431 which is being addressed in #18491, but while testing that PR I was able to reference partner event buses. |
@ewbankkit great! I will certainly try it when the provider is updated with that fix |
I am assuming all these are related, but here's a few issues I've observed with this:
|
I am no longer able to reproduce this with the latest provider version |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
resource "aws_cloudwatch_event_rule" "my_fancy_rule" {
name = var.name
description = "placeholder description"
event_pattern = var.event_pattern
event_bus_name = "aws.partner/partnersource/myeventbus"
tags = var.tags
}
Expected behavior - plan indicates a rule resource will be added with the appropriate event_bus associated.
Actual behavior - apply fails with the following error :
Error: Creating CloudWatch Events Rule failed: ResourceNotFoundException: Event bus "aws.partner/partnersource/myeventbus" does not exist
Likely cause - The AWS API does not list partner event buses when listing event buses through the command line. There is a sep command to list and find them despite the resource in the aws console showing "event bus name" and the appropriate value.
IE run aws events list-event-buses (default is shown, partner bus is not)
aws events list-partner-event-source appears to be the appropriate command. If I had to venture a guess the under the hood validation is utilizing this same tech and not finding the partner event bus as a valid bus to associate the rule with.
Terraform version tried: 14.7
aws provider version(s): 3.34 -> 3:36
NOTE - it was not possible to discover this until the regex fix released in 3.34 allowed the partner name to properly validate and not spit out regex violations.
This is very impactful - please properly support partner event buses so that we can create custom rules on our partner event bus to properly filter messages/events
The text was updated successfully, but these errors were encountered: