Unable to create two CloudWatch Rules with the same target #3574
Labels
@aws-cdk/aws-events
Related to CloudWatch Events
needs-triage
This issue or PR still needs to be triaged.
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
I create an ECS task, and then try to create two CloudWatch Event rules to start that task, one as a schedule and one as an event pattern. If I create either of these independently it works, but if I try to create both, it fails with:
An example code snippet is:
I don't know if this impacts resources other than ECS tasks. Commenting out the line for
targets: [ecs_target]
in either place allows this to run successfully, but the code above will fail with the error message above.What is the expected behavior (or behavior of feature suggested)?
I would like to be able to create two CloudWatch Rules, that each trigger the same target.
What is the motivation / use case for changing the behavior or adding this feature?
I want to be able to run my ECS task on a schedule, but also be able to kick it off manually for testing or other needs.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: