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.
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 undersariva-gitops/. For this step, copy only the Terraform code that should live in your infrastructure repo:
modules/- your stage directory, for example
dev/
workflow_templates/ in this step. Workflow templates are activated in the next step.
For a dev stage, the copy looks like this:
.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.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:
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.
<stage>/ or modules/.
3. Run the first apply manually
Open the workflow in GitHub: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.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.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.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.