The Simplest Way to Make Google Cloud Deployment Manager and Zerto Work Like They Should
Pairing google cloud deployment manager and zerto automates cloud recovery and template setup. Teams define cloud resources in code while replicating virtual machines for fast failover. This workflow builds standby cloud networks and storage before a disaster hits. When an outage happens, your replication tool boots workloads into those ready spaces. Both tools need clear permissions and clean network paths to work well together. How google cloud deployment manager and zerto share data and ro
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Pairing google cloud deployment manager and zerto automates cloud recovery and template setup. Teams define cloud resources in code while replicating virtual machines for fast failover.
This workflow builds standby cloud networks and storage before a disaster hits. When an outage happens, your replication tool boots workloads into those ready spaces. Both tools need clear permissions and clean network paths to work well together.
How google cloud deployment manager and zerto share data and roles
The template service reads declarative files to build cloud networks, disks, and virtual machines. It uses a built-in cloud service account to create and update these resources. Meanwhile, the replication tool watches source disks and sends data blocks to cloud storage.
During a test or real failover, the replication engine calls cloud APIs. It turns stored data blocks into live virtual machines inside the template network. For this to work, both tools must share a clear resource map.
The deployment tool sets up subnets, firewall rules, and storage buckets first. Then, the disaster recovery software reads those resource identifiers using its own service account. Data flows from your primary site over a private link into the target project. Each tool stays in its lane when you split their cloud roles properly.
Common failure modes and how to scope roles
Many teams fail by giving both tools one shared, wide-open admin account. If an attacker steals that key, they can delete both live and backup data. Broad tokens also make it hard to see which tool changed a network rule.
Unlogged API calls create another big blind spot during recovery drills. When a failover stalls, engineers often log in with personal admin keys to fix things. These manual fixes drift from the declarative templates and break future automated runs.
GCP Access Context Manager + Deployment Approval Gates: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, give each tool a separate service account with narrow rights. Let the template engine manage only network layout, firewall rules, and base storage buckets. Give the replication software permissions only to write disk blocks and boot failover instances.
Lock down network paths between your source site and the cloud project. Use private cloud interconnects or encrypted tunnels for all replication traffic. Block public internet routes to your recovery management nodes.
Keeping recovery drills safe and auditable
Recovery drills often expose sensitive data inside test cloud projects. Cloned databases carry real customer emails, phone numbers, card numbers, and national IDs. Engineers running tests or checking logs can run into this raw data.
Teams should apply data masking to rewrite matched fields in query results during tests. You also need clear audit logs for every action taken on recovery hosts. Track every human session and API call during a failover test.
Review service account permissions after every quarterly recovery drill. Remove any extra roles granted during emergency fixing. Keep your template files in version control so every network change requires peer review.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Should both tools use the same cloud service account?
No, you should create a unique service account for each tool. Give the template engine network roles, and give the replication tool compute and storage roles.
How do we stop manual changes from breaking recovery templates?
Block direct console edits in your recovery project during normal days. Require all network and storage updates to go through your versioned template files.
How can we protect sensitive data during a failover test?
Isolate the test network from public traffic and log all engineer queries. Use masking rules to rewrite emails, phone numbers, and card numbers in query results.
Related guides
In this post