Skip to content

Commit

Permalink
Add message suggesting how user can cleanup resources
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jul 25, 2018
1 parent d4f519e commit 370c901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/eksctl/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func doCreateCluster(cfg *eks.ClusterConfig, name string) error {
go ctl.CreateCluster(taskErr)
// read any errors (it only gets non-nil errors)
for err := range taskErr {
logger.Info("an error has occurred and cluster hasn't beend created properly")
logger.Info("to cleanup resources, run 'eksctl delete cluster --region=%s --name=%s'", cfg.Region, cfg.ClusterName)
return err
}
}
Expand Down

0 comments on commit 370c901

Please sign in to comment.