How can we check whether the instance is running or terminated? As terminated instance id remains in the system for some time, but I want to exclude those terminated instances from my running instances list as soon as the instance is terminated. Can someone please guide me how can I achieve it?
How can we check whether the instance is running or terminated? As terminated instance
Share
To get rid of terminated or stoped instances, I just put on a check like this