diff --git a/third_party/terraform/resources/resource_cloudfunctions_function.go b/third_party/terraform/resources/resource_cloudfunctions_function.go index a963808977ce..3e4b2806c339 100644 --- a/third_party/terraform/resources/resource_cloudfunctions_function.go +++ b/third_party/terraform/resources/resource_cloudfunctions_function.go @@ -52,11 +52,7 @@ func (s *cloudFunctionId) terraformId() string { } func parseCloudFunctionId(id string, config *Config) (*cloudFunctionId, error) { - parts := strings.Split(id, "/") - - cloudFuncIdRegex := regexp.MustCompile("^([a-z0-9-]+)/([a-z0-9-])+/([a-zA-Z0-9_-]{1,63})$") - - if cloudFuncIdRegex.MatchString(id) { + if parts := strings.Split(id, "/"); len(parts) == 3 { return &cloudFunctionId{ Project: parts[0], Region: parts[1],