Skip to main content

StrataCTL — bootstrap StrataCI into a customer AWS account and install/update/uninstall StrataBI modules via an ephemeral CodeBuild runner.

Project description

StrataCTL

The local command-line tool for operators. It installs, updates, and removes StrataBI modules and the StrataBI platform in your AWS account, fetches the account-entitled runtime, and version-controls dashboards. It runs on your machine with your own AWS credentials — it is not a hosted service.

The same strata package is also the runner program that executes inside the ephemeral CodeBuild runner (python -m strata.runner).

Install

python3 -m venv ~/.venvs/strata && source ~/.venvs/strata/bin/activate
pip install -e .            # from this directory; exposes the `stratactl` command
stratactl --help

Configure

strata init collects a deployment's configuration into strata.yaml (the source of truth) and generates the Terraform variable files — you don't hand-edit .tfvars.

stratactl init                     # interactive; re-run to reuse answers + fill gaps
stratactl init --non-interactive   # config + defaults only (automation)

Settings resolve in this precedence (highest first): CLI flag → env (STRATA_*) → ./.stratactl.toml~/.stratactl/config.toml → AWS SSM (/strataci/hq/*) → packaged defaults. Point it at a customer account by pasting the stratactl_customer_config output from strataci-runner into your config, and set your license token:

export STRATA_HQ_TOKEN=<your license token>

AWS credentials come from your normal profile/keys (--profile, AWS_PROFILE, env). What you can deploy is governed by your own IAM in the target account.

Commands

stratactl init                            # configure a deployment (writes strata.yaml + tfvars)
stratactl fetch-runtime --version 1.0.0   # pull the account-entitled runtime wheel -> ./dist (verified)
stratactl install <module>                # entitlement -> runner -> tofu apply, in your account
stratactl install-stratabi                # install the StrataBI platform (Enterprise)
stratactl install-stratabi-dev            # install the Developer/Community edition
stratactl update <module> --to <version>
stratactl uninstall <module>              # runs the module's tofu destroy (always available)
stratactl list                            # what's installed + delivery mode
stratactl logs <job-id>                   # tail/replay a runner build
stratactl dashboards pull|push|list|diff  # git-sync dashboards (no runner needed)

--source stratahq (default) fetches a signed bundle from Shaleio's control plane; --source customer_s3 installs from your own bucket (offline / air-gapped).

End-to-end: deploy StrataBI Enterprise

# 0. one-time per account: scaffold the runner  (see ../strataci-runner)
# 1. build the runtime container image          (see ../build_template)  -> ECR image URI
# 2. configure + deploy:
export STRATA_HQ_TOKEN=<token>
stratactl init            # set stratabi_image=<ECR URI>, vpc_id, subnets, allowed_ip_cidrs
stratactl install-stratabi
stratactl list

Your strata init values ride through to the ephemeral runner automatically (the CLI uploads them; the runner applies them over the bundle's baked defaults), so the platform deploys with your networking/image without any manual .tfvars on the runner.

Layout

Path What
src/strata/commands/ CLI subcommands (init, install, fetch_runtime, dashboards, …)
src/strata/hq/ StrataHQ client (SigV4-signed entitlement calls)
src/strata/runner/ the program that runs inside CodeBuild
src/strata/install/ the strata init wizard (schema / prompt / store / tfvars)
src/strata/artifacts/ bundle download / verify / manifest
tests/ unit tests (pytest)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stratactl-1.0.1.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stratactl-1.0.1-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file stratactl-1.0.1.tar.gz.

File metadata

  • Download URL: stratactl-1.0.1.tar.gz
  • Upload date:
  • Size: 59.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for stratactl-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f56195642c2150ccca741718fe7d7a4b491d3fa48eff2ee283cf1879cd25caaa
MD5 9d1237d5d69983ab100bfc5d94e0e78c
BLAKE2b-256 b3d05f02773d952559c74645875942b30d25f49b9861b413dc6518a82b8cbe51

See more details on using hashes here.

Provenance

The following attestation bundles were made for stratactl-1.0.1.tar.gz:

Publisher: release.yml on shaleio/stratactl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stratactl-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: stratactl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 72.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for stratactl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42212960dbcde9a1098abe0d3f89b8622d4915f819f67faa9776d8a918b9c528
MD5 8ee040c60d42726169e2fb348517b41e
BLAKE2b-256 09d24b3ad62aa50f6bbf581b6f575f8abde7c0503fb4a9ae4054462598ffc608

See more details on using hashes here.

Provenance

The following attestation bundles were made for stratactl-1.0.1-py3-none-any.whl:

Publisher: release.yml on shaleio/stratactl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page