jblakley / ScannerEKSQS

MIT License
0 stars 0 forks source link

Cluster health check during creation #7

Open jblakley opened 5 years ago

jblakley commented 5 years ago

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)

jblakley commented 5 years ago

Adding error returns to the scripts so that scanner_EKS_builder can check them