Skip to main content
Kubernetes/EKS only. On a VM, skip this page.
ⓘINFO
Setup wizard → Steps 5 & 1. The wizard generated the Terraform scaffold (Step 5 — initial scaffold) and — on the GitHub Actions path — the workflow templates + watcher choice (the CI/CD applier inside Step 1 — deployment path). This page is where you push them and trigger the first apply.
With the state backend, CI → AWS auth, Helm deployment, and admin bearer validation complete, you bootstrap the GitOps scaffold: push it, then let CI apply it. This is the initial apply — not your whole estate. Growth operations (add stage / env / cluster) happen later through Slack and PRs.
ⓘINFO
The agent generates Terraform; you own the workflow that applies it. Every infrastructure change the Deployment Agent makes goes through a PR to your repo — the agent never applies infrastructure directly, and the Sariva platform never touches files under .github/workflows/.
✓SUCCESS
Deploy-first is intentional. The Sariva platform can run while a declared Confluent Cloud cluster is still awaiting Terraform output and credentials. Having the platform online before the first apply lets the watcher auto-register the cluster when enabled, and gives the CLI a running REST API for manual sariva cluster register.
ⓘINFO
This is the GitHub Actions path — the supported CI today. If you run a different CI system (GitLab CI, Jenkins, ArgoCD, kubectl-only), apply the emitted Terraform from your own pipeline against the same S3 state backend, then continue to Connecting Kafka clusters.

1. Push the scaffold (inert)

The wizard emitted a GitOps scaffold under sariva-gitops/. For this step, copy only the Terraform code that should live in your infrastructure repo:
  • modules/
  • your stage directory, for example dev/
Do not copy workflow_templates/ in this step. Workflow templates are activated in the next step. For a dev stage, the copy looks like this:
After this push, your repo should contain a layout similar to:
Pushing these files alone runs nothing because .github/workflows/ has not been activated yet.

2. Activate the workflow

⚠WARNING
Copying the workflow file makes the workflow available in GitHub Actions. It does not always start a run by itself. The generated workflow usually runs on push only when files under your stage directory or modules/ change. If this commit only adds .github/workflows/terraform_apply_<stage>.yml, use the manual workflow_dispatch run in the next step.
The wizard emitted the workflow YAMLs under sariva-gitops/workflow_templates/terraform_apply_<stage>.yml. They are not active until you copy the required file into .github/workflows/ in your infrastructure repo. For the same dev stage used above:
If your wizard generated more than one stage, repeat this activation step for each stage you want CI to manage.
ⓘINFO
Copying them in by hand (rather than letting the agent do it) is your chance to inspect the workflow before it becomes active CI — read the trust policy, verify the OIDC role ARNs, confirm the path filter matches your stage directory. Once committed, the workflows are customer-owned; subsequent agent PRs don’t touch them.
After the workflow is active, start the first apply manually from GitHub Actions unless your activation commit also changed files under <stage>/ or modules/.

3. Run the first apply manually

Open the workflow in GitHub:
This uses the workflow’s workflow_dispatch trigger and runs the first terraform apply against the scaffold you already pushed. If you use the GitHub CLI, you can run the same workflow with:
ⓘINFO
The generated workflow has three triggers: pull requests for plan, push to main for apply when <stage>/ or modules/ change, and workflow_dispatch for manual apply. Because the scaffold was pushed before the workflow file existed, the safest first run is the manual Run workflow action. Future changes under <stage>/ or modules/ can trigger automatically on push or merge.
After the run starts, GitHub Actions executes Terraform layer by layer:
For the default example:

4. Verify watcher registration

1

Outputs uploaded

After apply succeeds, the workflow uploads terraform output -json as artifact tf-outputs-<stage>.
2

Watcher registers the Kafka cluster

If the watcher is enabled (workflow_watcher.enabled: true), the Sariva platform polls the successful workflow run, downloads the Terraform output artifact, and registers the Kafka cluster record for you.
3

Kafka credential is still pending

Registration only creates the Kafka cluster record. It does not attach broker credentials. The expected first state is CRED_LIFECYCLE=awaiting_credentials.
ⓘINFO
awaiting_credentials is expected after the first apply. The Confluent Cloud Kafka cluster now exists and Sariva knows about it, but Sariva still needs a credential reference before it can read metadata and observability data from the Kafka cluster. The next page, Connecting Kafka clusters, explains the full registration and credential-attachment flow.
To verify that the watcher registered the Kafka cluster, first port-forward the Sariva platform service from another terminal:
Then list registered Kafka clusters from your laptop:
Expected result before credentials are attached:
⚠WARNING
Do not treat awaiting_credentials as a failed apply. It means the watcher registered the Kafka cluster metadata, but the Kafka API key/secret has not been attached yet. Continue to Connecting Kafka clusters to create or reference the credential and move the Kafka cluster to resolved.
If the Kafka cluster does not appear, wait for the watcher polling interval and check the Sariva platform logs. If it still does not appear, continue to Connecting Kafka clusters and use the manual REST registration command for the Kafka cluster. After this, growth operations (add stage / environment / Kafka cluster) happen through the same GitOps loop: Sariva opens a PR, GitHub Actions applies it, and the watcher reconciles the result.

Continue the deployment path

Next: connect Confluent Cloud clusters

Register or patch the applied cluster, attach credentials, and pass credential resolution.

Back to deployment path

Return to the supported deployment path checklist.