code: func ProfileAndRegionFromConfig(environment string) (string, string, error) {
  	configFile := "project.json"
  
  	if environment != "" {
  		configFile = fmt.Sprintf("project.%s.json", environment)
  	}
  
  	f, err := os.Open(configFile)
  	if err != nil {
  		return "", "", err
  	}
  	defer f.Close()
  
  	var v struct {
  		Profile string `json:"profile"`
  		Region  string `json:"region"`
  	}
  
  	if err := json.NewDecoder(f).Decode(&v); err != nil {
  		return "", "", err
  	}
  
  	return v.Profile, v.Region, nil
  }
docs: // ProfileAndRegionFromConfig attempts to load the .profile setting from `environment`'s config.