- name: try using aws_eks_cluster wait with state=absent
  aws_eks_cluster:
    state: absent
    name: my_cluster
    wait: yes
  ignore_errors: yes
  register: aws_eks_cluster

- name: ensure that aws_eks fails with friendly error message
  assert:
    that:
      - '"msg" in aws_eks_cluster'
      - aws_eks_cluster is failed
