Private Google Access can be enabled for virtual machines in Google Compute so that they can be accessed from a VPC network. For more information on Google Compute private access options, see the GCP documentation.
References:
https://cloud.google.com/vpc/docs/configure-private-google-access
In GCP Console -
In Terraform -
References:
https://cloud.google.com/vpc/docs/configure-private-google-access
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_subnetwork#private_ip_google_access