The Simplest Way to Make AWS Backup and Fluxcd Work Like They Should
You pair aws backup and fluxcd to protect both cloud data and cluster state. One tool saves persistent disks and databases, while the other rebuilds apps from Git. This workflow lets your team recover a whole cluster after an outage. You restore the storage volumes first, and then your Git controller applies the app manifests. Without both parts, recovery stays incomplete. Restored apps fail without their database volumes, and raw disks sit idle without running pods. How aws backup and fluxc
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.
You pair aws backup and fluxcd to protect both cloud data and cluster state. One tool saves persistent disks and databases, while the other rebuilds apps from Git.
This workflow lets your team recover a whole cluster after an outage. You restore the storage volumes first, and then your Git controller applies the app manifests.
Without both parts, recovery stays incomplete. Restored apps fail without their database volumes, and raw disks sit idle without running pods.
How aws backup and fluxcd share roles and data
Your Git controller runs inside the cluster and watches a code repo. When you push a change, it updates the cluster to match that repo.
To manage cloud backups from Git, you add a cloud controller to the cluster. That controller reads custom files from your repo and calls the cloud API.
You link the cluster service account to a specific cloud role. This link lets the pod prove its identity without static keys stored in Git.
Once linked, the controller creates backup vaults, schedules, and selection tags. The cloud service then snapshots the tagged disks and databases on its own clock.
Data flows in one clear direction during normal daily operations. Git sends desired rules to the cluster, and the cluster tells the cloud what to save.
During a restore, you update the volume IDs in your Git branch. The Git tool reads the commit and mounts the restored disks to your pods.
Common failure modes and how to scope roles
Many teams fail because they give the cluster a broad admin cloud role. If an attacker compromises the Git repo, they can delete every saved snapshot.
Never allow the Git controller role to delete backup vaults or lower retention days. Give it permission only to create plans and assign resource tags.
AWS IAM Policies + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Shared service accounts also cause trouble across different teams and namespaces. One team might overwrite another team's backup schedule by mistake.
You can fix this by giving each namespace its own service account. Bind each account to a tight cloud role that only touches one app tag.
Unlogged database queries during a restore represent another major security risk. When an engineer checks a restored database, they often use a shared root password.
These manual checks leave no audit trail of who read what row. You should also mask sensitive fields like emails, phone numbers, and card numbers during checks.
Masking rewrites matched fields in query results before the screen displays them. This keeps customer data safe while engineers check that a backup restore worked.
Testing your recovery flow in a staging cluster
A backup plan only works if your team tests the restore steps often. Many teams set up snapshot schedules and never try to boot from them.
Start by spinning up a clean staging cluster in an isolated cloud network. Point your Git tool at a test branch that holds your app manifests.
Trigger a cloud restore job to create new volumes from your latest snapshot. Put those new volume IDs into your test branch and push the commit.
Watch the cluster pull the change and attach the disks to fresh pods. Run a quick read check on the database to confirm the state matches.
Keep the network path between the test cluster and production vaults very tight. Only allow restore calls from approved cluster nodes inside your private network.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Does FluxCD back up persistent volume data by itself?
No, it only syncs cluster state files from your Git repo. You need a storage snapshot tool like AWS Backup to save the actual disk data.
How should we store cloud backup settings in Git?
Store your backup plans and tag rules as declarative files in your repo. Let an operator inside the cluster apply those rules to the cloud API.
How do we prevent accidental snapshot deletion from Git?
Remove delete permissions from the cloud role that your cluster uses. Set a vault lock in the cloud account so nobody can erase snapshots early.
Related guides
In this post