Deployment best practices
StrataBI runs in an AWS account you choose. These are the choices that keep it predictable: which account it runs in, how many accounts you use, who can sign in and query, and how much room the network needs. They apply to the Enterprise Edition; the Developer Edition runs on your machine against a data plane in one account.
Give StrataBI its own AWS account
Recommended: a dedicated AWS account for StrataBI, and one per team or business function where those need to be kept apart.
- Quotas are per account and Region, and everything in the account shares them. Athena's active-query quota counts running and queued queries across every workgroup in the account. Lambda has one concurrency pool per account and Region. Amazon Bedrock's quotas are per model and Region. In an account of its own, StrataBI's quotas are StrataBI's.
- Boundaries are clearer. IAM policies, Lake Formation grants and the reach of a mistake stop at the account.
- Cost is attributable. Everything on the account's bill (Athena scans, Lambda, Fargate, S3) is StrataBI's.
- Teardown is clean. Removing StrataBI, or the whole account, cannot break another team's workload.
Check the quotas before you roll out. A new AWS account can start with a low Lambda concurrency quota. A page with several slow Lambda tiles, opened by a few people at once, then throttles. In Service Quotas, look at Lambda's concurrent executions, Athena's active DML queries and, if you use the AI features, Bedrock's quotas for your models. Raising a quota is a request you make to AWS: AWS account requirements lists the quotas, recommended values and text to paste into each request.
Use at least two accounts; three is better
| Account | What it is for |
|---|---|
| Sandbox | Developers and StrataForge: new dashboards and modules, StrataForge's sandboxes, Guildmaster as the Artisan, sample or synthetic data. |
| Non-production | Testing a release before it reaches production, and dashboards in review, against data your policy allows there. |
| Production | The dashboards people rely on. Changes arrive only through review and the pipeline. |
With two accounts, combine sandbox and non-production and keep production apart. For Guildmaster in each account, see Recommended in hardened environments.
Each account is its own installation. It has its own StrataCI (run stratactl bootstrap in each), its own OpenTofu state, environment configuration and module settings in that account's StrataCI bucket, and its own license: an Enterprise license and its token are bound to the AWS account they were issued for, and a token is redeemable only from that account (Entitlements & tokens). Pricing describes the two- and three-account architectures.
How work moves between accounts:
- Dashboards as code. Keep dashboard JSON in a repository, review it, then push the same file to each account. In the Enterprise Edition,
stratactl dashboards pushuploads to the deployment in the account your AWS credentials point at, and git-registered dashboards keep each account's registered set in step with the repository; both are Enterprise Edition features. In the Developer Edition,stratabi dashboards pushvalidates and uploads a file. See Dashboards as Code and the git registry. - Modules and the platform. Each account installs them through its own StrataCI. Promote the version you tested:
stratactl update <module> --to <version>. See Delivery & teardown.
If StrataBI must share an account (not recommended)
Some organizations put StrataBI into an account that already runs other workloads. It works, with these risks:
- Shared quotas. A busy workload, StrataBI's or another team's, can throttle the other: Athena queries queue behind each other, and Lambda tiles are throttled when the account's pool is used up.
- A wider blast radius. More people, roles and policies live in one account. A broad policy elsewhere can reach StrataBI's bucket and tables, and StrataBI's roles sit next to other teams' data.
- Other routes to the same data. Any role that can read a table can query it, whatever StrataBI's own controls say. See Close the other routes.
What you can do today:
- Athena workgroups. StrataBI creates its own bank of workgroups (
athena_workgroup_count) and spreads asynchronous tile queries across them. Workgroups do not add to the account's quota, but their CloudWatch metrics (queue time, processing time, data scanned) show StrataBI's share. A workgroup can also cap the data one query may scan: StrataForge's data workgroup sets one (data_query_cutoff_gb) and a StrataLake workgroup must have one; StrataBI's own workgroups are created without one. - Sign-in and roles, as below, so every query has a person behind it.
- Subnets of its own, with free addresses, as below.
- Budgets and alarms. Set AWS Budgets alerts, and watch CloudWatch for Lambda throttles and Athena queue time, so a squeeze shows up before people report it.
A control is being added so administrators can give each user or role a list of developer workgroups, chosen from the existing workgroups, for previews and drafts.
Identity and access
- Turn on sign-in for any deployment people use: Cognito at the load balancer, or your own identity provider in front of StrataBI (Authentication & SSO). The default mode,
none, is for evaluation: without sign-in there is no per-person identity, so anyone can appear as anyone. - Turn on role-based access control (Roles & access control).
- Give the Builder role carefully. Dashboard SQL runs under StrataBI's own role, not the viewer's. Whoever can build a dashboard can query whatever that role can read, so give the Builder role only to people who may see that data.
- Limits per person need their own path. Because StrataBI's queries run as one role, Lake Formation can limit what that role reads, not what each person reads. StrataLake (in release-candidate testing) gates who may use each connection; per-person enforcement by AWS is not available yet (StrataLake).
Network sizing
- One IP address per task. Each Fargate task takes an address in its subnet, and a rolling deployment briefly runs up to twice the service's task count. StrataForge adds a task for every running developer workspace, plus its own service tasks.
- Room for the load balancer. An Application Load Balancer needs at least eight free addresses in each of its subnets, and more as it scales.
- More than one Availability Zone. StrataCTL already checks before every install and update that the subnets exist, belong to the VPC and that the public subnets span two Availability Zones (StrataCTL); a check of free addresses per zone is coming in a later release.
- Leave headroom. A subnet's address range cannot be resized in place; if a zone runs short, add a larger subnet in that zone.
AI
StrataChat and Guildmaster call Amazon Bedrock in your account; check Bedrock's quotas for the models you allow. Models an administrator adds with the deployment's own API key are outside AWS (own-key models). For production and hardened accounts, use Guildmaster's Archivist tier (Guildmaster's tiers).
Review your LLM providers, including Amazon Bedrock, for data flight and sufficient isolation for your organization's needs when implementing AI. Learn more: Data protection in Amazon Bedrock
Checklist
- A dedicated AWS account for StrataBI, one per team or function where they must be kept apart
- At least two accounts (sandbox and production); three recommended (sandbox, non-production, production)
- StrataCI bootstrapped, and a license, in each account
- Service Quotas checked: Lambda concurrency, Athena active queries, Bedrock per model (AWS account requirements)
- Sign-in on (Cognito or your identity provider) and role-based access control on
- The Builder role only for people who may see what StrataBI's role can read
- Per-person data limits planned outside StrataBI's own role
- Subnets in at least two Availability Zones, with room for twice the task count and the load balancer
- Dashboards in a repository, reviewed and pushed to each account; modules promoted by version
- Budgets and alarms on Lambda throttles and Athena queue time
- Your LLM providers reviewed
Shaleio