【问题标题】:An error occurred (ValidationException) when calling the DeleteRule operation: Rule can't be deleted since it has targets调用 DeleteRule 操作时发生错误 (ValidationException):无法删除规则,因为它有目标
【发布时间】:2019-10-29 18:01:55
【问题描述】:
我在 aws cloudwatch 上删除事件时遇到了这个问题
调用 DeleteRule 时发生错误 (ValidationException)
操作:规则无法删除,因为它有目标。
我的命令行是:
aws events delete-rule --name event-schedule --force
【问题讨论】:
标签:
amazon-web-services
aws-cli
amazon-cloudwatch
【解决方案1】:
我得到了解决方案,我们应该先删除目标:
aws 事件删除目标 --rule 事件计划
--ids dev-transaction
然后删除规则:
aws events delete-rule --name event-schedule