agent/app/agent_unix.go
func isInstanceLaunchedInVPC(err error) bool {
	if metadataErr, ok := err.(*ec2.MetadataError); ok &&
		metadataErr.GetStatusCode() == http.StatusNotFound {
		return false
	}

	return true
}
func isInstanceLaunchedInVPC(err error) bool {
	if metadataErr, ok := err.(*ec2.MetadataError); ok &&
		metadataErr.GetStatusCode() == http.StatusNotFound {
		return false
	}

	return true
}
// isInstanceLaunchedInVPC returns false when the http status code is set to
// 'not found' (404) when querying the vpc id from instance metadata