The Simplest Way to Make Pulumi and Veeam Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair Pulumi and Veeam to build cloud apps and automate data backups at once. This setup lets engineers define backup rules in code whenever they launch new cloud servers. Manual backup steps often leave new servers exposed to data loss. When you link your build tool to your backup platform, every new database gets protection right away. Your team writes standard code, and the backup tool reads those tags to start work. How Pulumi and Veeam share keys and data Pulumi builds cloud server

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.

Teams pair Pulumi and Veeam to build cloud apps and automate data backups at once. This setup lets engineers define backup rules in code whenever they launch new cloud servers.

Manual backup steps often leave new servers exposed to data loss. When you link your build tool to your backup platform, every new database gets protection right away. Your team writes standard code, and the backup tool reads those tags to start work.

How Pulumi and Veeam share keys and data

Pulumi builds cloud servers, disks, and networks from code files written by your team. Veeam watches those cloud accounts and copies important disks and databases on a set schedule. To work together, both tools need clear rules for how they log in and talk.

First, the build runner logs into the cloud provider and creates the new storage buckets. Next, it sends an API call to the backup server to register the new machine. It uses a dedicated service role with a secret key to make this request.

You can also use resource tags to link the two tools without direct API calls. The build tool writes a specific backup tag onto every new virtual machine or database. The backup scanner reads cloud tags every hour and adds matching machines to a job.

This tag flow keeps your build scripts simple and fast. The build runner does not need network routes to the backup control plane at all. Both tools talk only to the cloud provider API using their own scoped cloud roles.

Common risks with shared keys and broad roles

Many teams give their build runners full admin keys to the backup server. If an attacker steals that shared key, they can delete every backup snapshot you own. Shared service accounts also make it hard to see which person changed a backup rule.

Long-lived tokens stored in build variables create another big risk for your team. Engineers often copy these keys into local files to test a script from a laptop. Once a static key leaves the build server, you lose track of who uses it.

Pulumi Policy as Code + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad network paths make these identity problems much worse. If the backup API sits open to every developer network, anyone with a key can run commands. Unlogged queries to the backup database can also expose sensitive file lists or customer data.

To fix this, give the build tool a strict role that only adds new jobs. Never let the build role delete old backup files or change retention locks. Lock down network paths so only trusted runners can reach the backup management port.

How to test and check your backup code

Writing backup rules in code helps nothing if the restore step fails during an outage. Your team should test both the build scripts and the recovery jobs every single week. Start by checking that every cloud database has the right backup tag in your state file.

You can run policy checks before any code deployment begins. The policy tool reads the planned changes and blocks any server that lacks a backup tag. This simple gate stops human mistakes before a new server ever goes live.

After the code runs, check the backup server logs to confirm the first snapshot finished. Make sure your log system records who ran the build and which backup job changed. Clear logs help auditors see that every production database has a valid recovery point.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Should Pulumi call the Veeam API or use cloud tags?

Cloud tags work best for most teams because they keep the two tools separate. Direct API calls work well when you must create custom backup jobs for single servers.

How do we stop build scripts from deleting backups?

Create a custom role in the backup tool that only allows job creation and updates. Turn off storage deletion permissions and turn on immutable locks on your cloud storage buckets.

Where should we store the backup API keys for our builds?

Keep all API keys inside an encrypted secret store rather than plain text files. Set your build runner to fetch the key only when the deployment job starts.

The query runs. The emails stay hidden.