我有链接到CloudWatch规则的Lambda。当我运行terraform destroy
删除它们时(lambda及其相关规则都成功删除了lambda,然后当我尝试删除规则时得到
Error deleting CloudWatch Event Rule: ValidationException: Rule can't be deleted since it has targets.
status code: 400
我什至在删除lambda和规则之间睡了很长时间,但仍然遇到相同的错误。 terraform不会在删除lambda之前将其与目标分离吗?有没有从terraform上执行此操作的单独命令?
答案 0 :(得分:1)