Database work is routed by exact data tag
Ordinary API execution accepts a data plane whose agent tags areprofile:*. Database work does not: a data plane with Superblocks Database enabled must list exact tags, such as profile:dev, and the data plane, Terraform module, and Helm chart all reject the wildcard. If your data planes run with profile:* today, decide your tags and switch to them before you enable databases.
One database per app, per data tag
Superblocks creates one logical database for each combination of application and data tag, inside the Aurora pool owned by the data plane that serves that tag. With the recommended two-data-plane setup, an app built in Edit gets its development database from the development data plane, and publishing creates its production database through the production data plane and applies the same migrations there; see How it works. Because the two data planes are separate, the development pool can scale to zero while the production pool stays always on; see Cluster autoscaling.One database-enabled data plane per data tag
Superblocks recommends a separate data plane for each data tag you enable databases for, each in its own VPC and ideally its own AWS account. The recommended two-account layout already satisfies this. If you run one of the less common layouts, check it against these rules:- A data plane can serve databases for more than one tag, but every tag it serves shares that data plane’s pool, capacity shape, and IAM role. Keep tags with different requirements (dev vs production, or different regions) on different data planes.
- Each data tag should be served by exactly one database-enabled data plane. Replicas of that data plane are fine, because they share one configuration. A second, independently configured data plane serving the same tag makes routing ambiguous.
- Two data planes in one account and region must be declared together with distinct agent names so they share a state bucket without colliding. See Multiple data planes in one account and region.
- Each region needs its own tag and its own prerequisite stack. An app’s database in
us-eastand its database ineu-westare different databases. See Additional AWS regions.
Why keep it simple
Every layout in Reference architectures works with Superblocks Database, but each extra data tag means another database per app, and each extra database-enabled data plane means another Aurora pool with its own cost floor, capacity settings, IAM roles, and state to protect. One data tag and data plane for Edit and Preview, and one for Production, give builders a development database and a production database per app with no further decisions to make. Add more only when one of the less common layouts describes a requirement you have, and involve your Superblocks account manager before you enable databases on it.Next steps
Set up Superblocks Database
The Terraform and Helm walkthrough, one data plane at a time.
Superblocks Database reference
Naming, IAM policies, pool and autoscaling options, and multi-region setup.

