code: func isInstanceLaunchedInVPC(err error) bool {
  	if metadataErr, ok := err.(*ec2.MetadataError); ok &&
  		metadataErr.GetStatusCode() == http.StatusNotFound {
  		return false
  	}
  
  	return true
  }
docs: // isInstanceLaunchedInVPC returns false when the http status code is set to
  // 'not found' (404) when querying the vpc id from instance metadata