Skip to navigation

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.

Network resourceRequirements
SubnetMeets the outbound access requirements. To choose which networks and subnets Eon uses, see GCP: Customize Restore Server Configuration.
Subnet for an instant restore VMDiffers from the subnet of the restore server’s management network interface. See instant restore subnet.

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.

Network resourceRequirements
VPC networkPrivate Services Access is configured for the VPC network.
Cloud SQL instanceUses a private IP address.
Firewall rulesNone required between the restore server and the Cloud SQL instance.
SubnetMeets the outbound access requirements. To choose which networks and subnets Eon uses, see GCP: Customize Restore Server Configuration.

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.

Network resourceRequirements
pubsub.googleapis.comEon sends restore commands to the restore server through this host.
firestore.googleapis.comThe restore server reports command status through this host.
storage.googleapis.comThe restore server uploads logs through this host.
secretmanager.<region>.rep.googleapis.com or secretmanager.googleapis.comThe restore server reads the image registry login through this host. Either host is enough. <region> is the restore server’s region. For a region without regional Secret Manager endpoints, Eon uses a nearby supported region.
<aws_account_id>.dkr.ecr.<aws_region>.amazonaws.comThe Amazon ECR registry that serves the restore server’s container images by default. <aws_account_id> and <aws_region> identify Eon’s registry, not your AWS account. Eon may report the exact host when it’s unreachable.
prod-<aws_region>-starport-layer-bucket.s3.<aws_region>.amazonaws.comThe Amazon S3 bucket that serves the container image layers. <aws_region> is the region in the Amazon ECR registry host.
Debian package mirrorsThe restore server installs packages from the mirrors in its apt sources, so at least one mirror must be reachable. The port is 80 or 443, depending on the mirror’s URL.

Ways to provide outbound access

Provide outbound access with an external IP address or Cloud NAT, and meet the DNS and TLS inspection requirements.

Network resourceRequirements
External IP addressEon assigns an external IP address to the restore server when the organization policy allows it. An external IP address gives access to every required host.
Cloud NATRequired when an organization policy blocks external IP addresses. Eon then creates the restore server without one. Configure Cloud NAT on the VPC network’s Cloud Router. Cloud NAT gives access to every required host.
Private Google AccessGives access to only the Google API hosts. It’s enough for an instant restore host. For other restore servers it isn’t enough on its own, because the Amazon ECR registry, the image layer bucket, and the Debian package mirrors aren’t Google hosts. Combine it with Cloud NAT or an external IP address.
DNS*.googleapis.com must resolve from the restore subnet.
TLS inspectionExclude the required hosts from TLS inspection. A firewall or proxy that intercepts TLS for these hosts can stop the restore server from connecting, so the restore fails or times out.

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.

Network resourceRequirements
Trusted image projects (constraints/compute.trustedImageProjects)For standard restores, must allow images from the debian-cloud project. The restore server boots from a public Debian image in that project. For instant restore, also allow the Eon image project named in the error message.
External IP access (constraints/compute.vmExternalIpAccess)When this policy blocks external IP addresses, Eon creates the restore server without one. Configure Cloud NAT as described in outbound access.

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.