-
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
Creation of aws_cloudwatch_event_rule errors when using Partner event sources #18431
Comments
terraform-provider-aws/aws/internal/service/cloudwatchevents/id.go Lines 40 to 50 in 18cac7d
Related: |
It looks like we may have the same issue with |
For
|
@ewbankkit I can help with updating |
This has been released in version 3.39.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Expected is that the eventbridge rule is created, which it is. However, the final step of the function returns a check in the state if the rule is there. This check fails because of a formatting error check that fails incorrectly (format is correct). End state is that the resource is in AWS, is in state as well, but can't be used since refreshing state will cause it to error with the above error.
Actual Behavior
Resource is build, but fails when state is checked (either during the apply, or afterwards during a plan).
Steps to Reproduce
terraform apply
Really, thats all there should be to it.
Important Factoids
Already checked out the source of this issue.
aws/internal/service/cloudwatchevents/id.go
has a function calledRuleParseID
, which is called at the end of each creation of a Eventbridge rule. The rule parser ID uses a/
to split the string of the rule name and checks if either:a. The rule contains no
/
by doinglen(parts) == 1
and checking if the one part is not emptyb. The rule contains exactly one
/
by doinglen(parts) == 2
and both parts are not empty.A check should be added here, checking if the first part is the string e.g
parts[0] == "aws.partner"
which is used in each eventbus partner string. If this is the case, multiple/
should be allowed in the rule id.References
None
The text was updated successfully, but these errors were encountered: