Configuration
Every StrataBI component installs with defaults you can override. This section says, for each installable component, what you can override, where the setting is recorded, and how to apply it:
- StrataBI core: the Fargate task, sync Lambda tiles, network and sign-in.
- Data-source connectors: the function's memory and time, result caps, network.
- Install order and your manifest: keeping the order, the answers and the overrides of a deployment in your own version control.
Where settings are recorded
| What | Where | Written by |
|---|---|---|
| Your answers to the installer's questions, for StrataBI and for each module | strata.yaml, in your working folder: meant for your version control | stratactl init, stratactl init module <id> |
The environment: name_prefix, region, vpc_id, public_subnet_ids, enable_private_subnets, private_subnet_ids | s3://<strataci-bucket>/config/env/<env>.auto.tfvars.json | The first install; stratactl env set or env import; --reconfigure |
Each component's settings (StrataBI's own are under stratabi) | s3://<strataci-bucket>/config/<module>.auto.tfvars.json | install and update --reconfigure, from strata.yaml; or you, by hand |
| Admin console settings | StrataBI's system bucket | The admin console, at run time |
The StrataCI bucket is versioned, so every earlier version of a stored file can be restored. Its name appears in the header of stratactl env show.
How they combine
When StrataCI's runner applies a component, OpenTofu reads its variables in this order, and a later value wins:
- the variable's own default, in the component's OpenTofu;
- the defaults file shipped in the component's bundle;
- the component's settings file;
- the environment file.
So an environment value always wins, and any OpenTofu variable of a component can be set in its settings file, including the ones the installer never asks about. Each component's configuration page names them.
Applying a change
- Install renders your answers in
strata.yamlinto the component's settings file, and creates the environment file if there is none yet. - Update reuses the stored files as they are; it does not read
strata.yaml. It behaves the same from any folder or machine. - Update with
--reconfigurere-readsstrata.yaml, shows what would change in the environment, and asks before writing. - A setting the installer doesn't ask about: edit the component's settings file (see StrataCTL: Module settings), then run
stratactl update <module>. - An environment value:
stratactl env set, then update. Changing one replaces the load balancer and the ECS security groups, so the plan guard stops the update until you re-run it with--allow-replace.
strata.yaml holds answers for a component, install and update --reconfigure replace its settings file with them. A key you added to the file by hand is dropped then, so set it again before the next update, or keep the file in your own version control (Install order and your manifest).Install settings and admin console settings
Install settings change infrastructure: they are OpenTofu variables, recorded in the files above and applied by an install or update. Admin console settings change behaviour at run time: an administrator changes them in StrataBI's admin console, they take effect without an install, and the infrastructure stays as it is.
A module can also declare its own admin console settings. Its install settings then set a ceiling on each, so the console can never allow more than the install does, and every change is audited.
Your own pipeline
To run every OpenTofu change through your own pipeline's review, keep all variables in your own *.auto.tfvars files and apply the bundle yourself: see Bring your own CI/CD, Option B.
Related
StrataCTL · Deploy · Bring your own CI/CD · Admin console · Modules
Shaleio