Quickstart with Kind

Try the published release in a disposable local Kubernetes cluster.

Use Kind for a reproducible first experience, without AWS credentials or source image builds. Kind runs Kubernetes nodes in containers. Create a cluster and reconcile a ConfigMap with direct apply. Then use the same cluster for manual approval, OPA and drift. None of these steps requires EKS or AWS credentials. The example defaults to OpenTofu; you can choose Terraform in step 3.

1. Prepare the local cluster

Prerequisites: a running Docker or compatible Kind container provider, Kind, kubectl, Helm 3 or later, curl, and a Bash-compatible shell. Use Linux/amd64 nodes for the initial release.

kind create cluster --name iacstack-quickstart
kubectl config use-context kind-iacstack-quickstart
kubectl get nodes

2. Install Argo Workflows and the controller

Install Argo Workflows and wait for its Kubernetes APIs:

helm upgrade --install argo-workflows argo-workflows \
  --repo https://argoproj.github.io/argo-helm --version 2.0.20 \
  --namespace argo-workflows --create-namespace --wait --timeout 5m
kubectl wait --for=condition=Established \
  crd/workflows.argoproj.io crd/workflowtemplates.argoproj.io --timeout=120s

Download the quickstart files and install the published controller chart. Stay in the same terminal and in the quickstart directory for the rest of this walkthrough.

CHART=oci://ghcr.io/iacstack/charts/iacstack-controller
CHART_VERSION=0.1.0-alpha.2
APP_VERSION=v0.1.0-alpha.2

curl -fsSL "https://10199cf5.iac-stack-controller.pages.dev/examples/download-quickstart.sh" -o download-quickstart.sh && bash download-quickstart.sh || exit 1
cd quickstart

helm upgrade --install iacstack-controller "$CHART" --version "$CHART_VERSION" \
  --namespace platform-system --create-namespace --values controller-config.yaml \
  --wait --timeout 4m
kubectl wait --for=condition=Established crd/iacstacks.iacstack.io --timeout=120s

3. Create your first ConfigMap

Build the Argo manifest. This example uses OpenTofu by default. You don’t need to install either engine on your computer.

kubectl kustomize . > workflow-bundle.yaml &&
  sed "s|iacstack-runner-opentofu:local|ghcr.io/iacstack/iacstack-runner-opentofu:$APP_VERSION|" \
    workflow-bundle.yaml > workflow-release.yaml || exit 1

Optional: use Terraform instead. Run this before applying the manifest. It changes the runner image and engine, not the controller.

sed "s|iacstack-runner-opentofu:$APP_VERSION|iacstack-runner-terraform:$APP_VERSION|;s|value: tofu|value: terraform|" \
  workflow-release.yaml > workflow-terraform.yaml &&
  mv workflow-terraform.yaml workflow-release.yaml

Install the WorkflowTemplate and submit the IaCStack. Wait for the stack to report Ready=True.

kubectl apply -f workflow-release.yaml
kubectl apply -f stack.yaml
kubectl -n platform-system wait --for=condition=Ready iacstack/hello-stack --timeout=5m

Check the Workflow and resulting ConfigMap:

FIRST_WORKFLOW=$(kubectl -n platform-system get iacstack hello-stack \
  -o jsonpath='{.status.execution.workflow}')
kubectl -n argo-workflows get workflow "$FIRST_WORKFLOW" -o jsonpath='{.status.phase}{"\n"}'
kubectl -n iacstack-quickstart get configmap hello-stack \
  -o jsonpath='{.data.message}{"\n"}'

Expected: the Argo Workflow is Succeeded and the ConfigMap prints Hello from IaCStack.

The stack.yaml file selects the direct alias in controller-config.yaml. That alias points to the WorkflowTemplate installed from workflow-release.yaml. The runner validates, plans and applies the ConfigMap in the same Argo node, with no approval or OPA evaluation.

Open workflow.yaml to see how Argo calls validate-plan-apply.sh. The kustomization.yaml packages the script into a ConfigMap that the pod mounts read-only. The node log is enough here: there is no custom HTML or OPA.

4. Change the intent and verify the new execution

Change spec.inputs.message on the IaCStack, not the ConfigMap. Wait for the controller to observe the new generation and report Ready=True again.

kubectl -n platform-system patch iacstack hello-stack --type merge \
  -p '{"spec":{"inputs":{"message":"Hello from my first update"}}}'
GENERATION=$(kubectl -n platform-system get iacstack hello-stack -o jsonpath='{.metadata.generation}')
kubectl -n platform-system wait --for=jsonpath='{.status.observedGeneration}'="$GENERATION" iacstack/hello-stack --timeout=5m
kubectl -n platform-system wait --for=condition=Ready iacstack/hello-stack --timeout=5m
NEW_WORKFLOW=$(kubectl -n platform-system get iacstack hello-stack \
  -o jsonpath='{.status.execution.workflow}')
printf 'Before: %s\nAfter:  %s\n' "$FIRST_WORKFLOW" "$NEW_WORKFLOW"
kubectl -n argo-workflows get workflow "$NEW_WORKFLOW" -o jsonpath='{.status.phase}{"\n"}'
kubectl -n iacstack-quickstart get configmap hello-stack \
  -o jsonpath='{.data.message}{"\n"}'

Expected: Before and After show different Workflow names, the new Workflow is Succeeded, and the ConfigMap prints Hello from my first update. If the names still match, give the controller time to register the change and check again.

If the stack doesn’t become ready

kubectl -n platform-system describe iacstack hello-stack
kubectl -n argo-workflows get workflows,pods

No Workflow? Check the stack events and confirm the iacstack-quickstart-direct WorkflowTemplate is in argo-workflows. Workflow failed? Open its failed node in the Argo UI or check the pod logs. For ImagePullBackOff, check GHCR access and Linux/amd64 node compatibility.

Kind regression log excerpts: the first apply created the ConfigMap; a later workflow updated its message. The automated test uses a different second message. GitHub Actions run.

Two succeeded workflows: the first created the ConfigMap and the second changed its message

5. Continue or clean up

Keep the same cluster to try approval, OPA, and drift, add a step to your workflow, or sync a stack from Git.

When finished, delete only the disposable cluster created in this guide:

kind delete cluster --name iacstack-quickstart