IaCStack API

Direct module inputs

The following stack supplies string values that a registered workflow maps to IaC module variables. Choose a repository, revision, and workflow alias configured in your installation.

apiVersion: iacstack.io/v1alpha1
kind: IaCStack
metadata:
  name: app-compute
spec:
  sourceRef:
    repository: https://github.com/org/infrastructure.git
    path: stacks/compute
    version: v1.0.0
  workflowRef:
    name: direct
  inputs:
    instance_type: t3.medium
    instance_count: "3"

Higher-level intent

The following example describes an EKS stack that uses an existing IaC repository, a governed execution workflow, and a network dependency.

apiVersion: iacstack.io/v1alpha1
kind: IaCStack
metadata:
  name: eks-production

spec:
  sourceRef:
    repository: https://github.com/org/infrastructure.git
    path: stacks/eks
    version: v1.0.0

  workflowRef:
    name: governed

  inputs:
    entity: br
    environment: prod
    region: us-east-1

  dependsOn:
    - name: network-production

  suspend: false

  reconciliation:
    driftCheckInterval: 24h
    retryPolicy:
      strategy: ExponentialBackoff
      interval: 30s
      maxInterval: 10m
      maxRetries: 3

  lifecycle:
    destroy: false
    deletionPolicy: Retain
FieldPurpose
sourceRefIdentifies the existing IaC source, path, and revision. The workflow resolves and pins the effective revision.
workflowRefSelects a registered execution integration by alias. If omitted, the configured default is used.
inputsSupplies user-defined data to the execution workflow without imposing tool-specific semantics. The current format is a map of string values.
dependsOnDeclares prerequisite stacks in the same namespace.
suspendControls whether new reconciliation attempts may be scheduled.
reconciliationConfigures periodic drift checks and retry behavior.
lifecycleExpresses explicit destruction intent and the policy for deleting the stack resource.

The deletionPolicy field uses Retain as the safe default and Destroy to request governed teardown upon deletion. Setting destroy: true expresses explicit destruction intent while the stack resource still exists. Neither setting bypasses workflow governance or grants implicit authorization to modify infrastructure.

Input mapping

The controller passes the declared inputs to the execution workflow. It does not interpret them as Terraform variables or enforce a specific infrastructure configuration model.

For teams using centralized configuration, the workflow can use identifiers such as entity and environment to resolve the appropriate configuration files, backend, and target.

For teams using traditional IaC inputs, a compatible workflow can instead map the supplied values directly to the module’s variables.

# Alternative inputs for a workflow that maps them to module variables.
inputs:
  instance_type: t3.medium
  instance_count: "3"
  enable_monitoring: "true"

The workflow is responsible for validation and any conversion to the types expected by the IaC tool. Credentials and sensitive values should be obtained through authorized secret mechanisms, not embedded in the stack inputs.

Operations · Workflow tutorials