diff --git a/pkg/speedrun/cloud/instance.go b/pkg/speedrun/cloud/instance.go index de8e188..47fe112 100644 --- a/pkg/speedrun/cloud/instance.go +++ b/pkg/speedrun/cloud/instance.go @@ -28,6 +28,9 @@ func (i Instance) GetAddress(private bool) string { func GetInstances(target string) ([]Instance, error) { project := viper.GetString("gcp.projectid") + if project == "" { + return nil, fmt.Errorf("missing Google Cloud project ID, consider adding it to your config file: %s", viper.ConfigFileUsed()) + } gcpClient, err := NewGCPClient() if err != nil {