mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-10-18 01:42:53 +03:00

If users had previously terminated an instance and recreated it, e.g manually in the console, the clean-up script will have issues since terminated instance remain available in AWS some time. This commit only takes instances with a state of stopped or running for termination.