Error checking if cluster exists without checking if cluster is healthy
def createCluster:
...
if isEKSCluster(cn):
print("Cluster %s already exists -- can't create -- proceeding")
return
....
This function is returning when a cluster exists despite the fact that the cluster doesn't have any workers, yet. It only checks whethere there is a cluster with that name.
Solution: Here we need to check whether the workers have been created, as well. Workers may be deleted if there was an error creating the stack. (ROLLBACK_COMPLETE)
Error checking if cluster exists without checking if cluster is healthy def createCluster: ... if isEKSCluster(cn): print("Cluster %s already exists -- can't create -- proceeding") return .... This function is returning when a cluster exists despite the fact that the cluster doesn't have any workers, yet. It only checks whethere there is a cluster with that name.
Solution: Here we need to check whether the workers have been created, as well. Workers may be deleted if there was an error creating the stack. (ROLLBACK_COMPLETE)