Skip to content

Commit

Permalink
Add message suggesting how to fix the shared SG issue
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jan 17, 2019
1 parent 2b52096 commit f4d5e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/eks/compatibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ func (c *ClusterProvider) ValidateClusterForCompatibility(cfg *api.ClusterConfig
}

if sharedClusterNodeSG == "" {
return fmt.Errorf("cluster %q does not have shared node security group", cfg.Metadata.Name)
return fmt.Errorf(
"shared node security group missing, to fix this run 'eksctl utils update-cluster-stack --name=%s --region=%s'",
cfg.Metadata.Name,
cfg.Metadata.Region,
)
}

return nil
Expand Down

0 comments on commit f4d5e24

Please sign in to comment.