Question:
I got this issue when deleting event on aws cloudwatch
An error occurred (ValidationException) when calling the DeleteRule
operation: Rule can’t be deleted since it has targets.
My command line is :
1 2 |
aws events delete-rule --name event-schedule --force |
Answer:
I got the solution, we should remove target first:
aws events remove-targets –rule event-schedule
–ids dev-transaction
then delete-rule:
1 2 |
aws events delete-rule --name event-schedule |