GCP: Restore Server Requirements
This article describes the network, outbound access, organization policy, and API requirements for restore servers in GCP restore projects.
By default, Eon deploys the restore server using your project’s default VPC network and subnet. If these defaults exist and have the required connectivity, no additional configuration is needed. If the default VPC network resources have been deleted or have outbound limitations, customize the restore server’s network configuration. See GCP: Customize Restore Server Configuration for details.
Network requirements
The network requirements depend on the resource you’re restoring. Every restore server also needs the outbound access described below. An instant restore host needs outbound access only to Google API hosts.
Compute Engine and Cloud Storage
When restoring Compute Engine instances, Eon creates the restore server in the same zone as the restore destination. When restoring Cloud Storage buckets, Eon creates the restore server in the destination bucket’s region.
Instant restore subnet
For Compute Engine instant restore, the restore server has a second network interface that Eon creates for management traffic.
-
Compute Engine rejects an instance whose two network interfaces are in the same subnet.
-
Eon puts the management interface on the network and subnet in the restore account’s network configuration, or on the restore project’s default network and subnet when none is configured.
-
The subnet you choose for the restored VM must differ from the management subnet.
-
If both resolve to the same subnet, the restore fails with an error that says instant restore needs a management subnet separate from the restored instance’s subnet.
The management interface needs outbound access only to Google API hosts, so Private Google Access is enough.
For the instant restore procedure, see Compute Engine: Restore a VM (Instant Restore).
Cloud SQL
When restoring Cloud SQL instances, Eon creates the restore server in the same VPC network as the restored instance.
The restore server needs to create and populate databases on the restored instance. With Private Services Access configured for the VPC network and a private IP address on the Cloud SQL instance, Cloud SQL authorizes connections from resources in the same VPC network using RFC 1918 private IP ranges.
Outbound access for restore servers
The restore server needs outbound access to Google APIs and to hosts outside Google. This applies to every resource type, except that an instant restore host needs only the Google API hosts. The restore server needs to reach these hosts when it boots. If it can’t reach a required host, the restore fails or times out while waiting for the restore server. Eon may report which hosts are unreachable and suggest a fix.
Required hosts
Allow outbound access to these hosts. Port 443 applies unless the table says otherwise. An instant restore host doesn’t need the Amazon ECR, image layer bucket, or Debian package mirror hosts.
Ways to provide outbound access
Provide outbound access with an external IP address or Cloud NAT, and meet the DNS and TLS inspection requirements.
To configure Cloud NAT and Private Google Access, see Configure Cloud NAT and Configure Private Google Access in the Google Cloud documentation.
Organization policy
If your organization restricts the images or external IP addresses that projects can use, make sure the policies in the restore project allow the settings below.
APIs and roles
Eon’s permissions deployment for a restore project enables the Google APIs that restores use and creates the roles that restores need.
The APIs include Compute Engine, Cloud Storage, Secret Manager, Pub/Sub, Firestore, and Batch.
When the restore server’s subnet is in a Shared VPC host project, deploy with the host project ID so Eon also creates the EonRestoreToSharedSubnetworkRole role in the host project.
For the deployment files, see GCP: Permissions Deployment Files.