[Bug]: can't create multiple cloudwatch_event_target with same rule and arn #39233
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/events
Issues and PRs that pertain to the events service.
Terraform Core Version
1.4.2
AWS Provider Version
4.67.0
Affected Resource(s)
Expected Behavior
For a single event with two associated targets, both targets should be created.
Actual Behavior
If the two targets with the same event have the same
rule
andarn
, only one is created. Even if, as in my case, theinput
s are different.I was able to rectify the issue by adding
target_id
to both targets with different unique values. Only then were both targets created as expected.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Please see reproduction code below. No error was output.
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: