<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Integration and customization guides on IaC Stack Controller</title><link>https://iacstack.io/docs/tutorials/</link><description>Recent content in Integration and customization guides on IaC Stack Controller</description><generator>Hugo</generator><language>en</language><atom:link href="https://iacstack.io/docs/tutorials/index.xml" rel="self" type="application/rss+xml"/><item><title>Bring your own workflow</title><link>https://iacstack.io/docs/tutorials/bring-your-own/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/bring-your-own/</guid><description>&lt;p&gt;You can reuse the modules, backend, runner and governance from an existing pipeline, including one currently running on GitHub Actions. Adapt the execution logic into an Argo WorkflowTemplate and connect it through the IaCStack execution contract.&lt;/p&gt;
&lt;h2 id="what-you-can-change-and-what-you-must-keep"&gt;What you can change and what you must keep&lt;/h2&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;You own&lt;/th&gt;
 &lt;th&gt;The integration needs&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Module, inputs, images, and stages. HTML reports, OPA, and approval forms are optional.&lt;/td&gt;
 &lt;td&gt;A registered Argo &lt;code&gt;WorkflowTemplate&lt;/code&gt; selected by the stack. GitHub Actions YAML does not run directly.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Identity, target, backend, and state lock.&lt;/td&gt;
 &lt;td&gt;A consistent target binding and a single state writer. The pipeline and backend are responsible for those.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;When to review plans, remediate drift, or block apply.&lt;/td&gt;
 &lt;td&gt;Intent and results in the execution contract format. If the alias requires authorization, request and claim it before apply. Human approval is separate.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Want to see a change before migrating? &lt;a href="https://iacstack.io/docs/tutorials/create-workflow/"&gt;Add a real step in Kind&lt;/a&gt;. For adopting existing state, follow the sequence below.&lt;/p&gt;</description></item><item><title>Create your own workflow</title><link>https://iacstack.io/docs/tutorials/create-workflow/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/create-workflow/</guid><description>&lt;p&gt;An IaCStack chooses a workflow alias. The alias points to an Argo WorkflowTemplate, and Argo starts a runner pod to execute it. See &lt;a href="https://iacstack.io/docs/how-it-works/"&gt;How it works&lt;/a&gt; for the full path.&lt;/p&gt;
&lt;h2 id="1-clone-a-working-workflowtemplate"&gt;1. Clone a working WorkflowTemplate&lt;/h2&gt;
&lt;p&gt;After the &lt;a href="https://iacstack.io/docs/getting-started/quickstart/"&gt;Kind quickstart&lt;/a&gt;, stay in the same &lt;code&gt;quickstart&lt;/code&gt; directory and shell. With &lt;code&gt;jq&lt;/code&gt; installed, create a separate copy using the same published runner:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl -n argo-workflows get workflowtemplate iacstack-quickstart-direct -o json |
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; jq &lt;span style="color:#e6db74"&gt;&amp;#39;{apiVersion, kind, metadata: {name: &amp;#34;my-direct&amp;#34;, namespace: .metadata.namespace}, spec}&amp;#39;&lt;/span&gt; |
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; kubectl create --dry-run&lt;span style="color:#f92672"&gt;=&lt;/span&gt;client -f - -o yaml &amp;gt; my-workflow.yaml
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl apply --dry-run&lt;span style="color:#f92672"&gt;=&lt;/span&gt;server -f my-workflow.yaml &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; kubectl apply -f my-workflow.yaml
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Open &lt;code&gt;my-workflow.yaml&lt;/code&gt;. This excerpt shows which fields connect the pieces. It is not a replacement for the complete clone.&lt;/p&gt;</description></item><item><title>Sync an IaCStack from Git</title><link>https://iacstack.io/docs/tutorials/sync-from-git/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/sync-from-git/</guid><description>&lt;p&gt;This optional exercise takes the &lt;a href="https://iacstack.io/docs/getting-started/quickstart/"&gt;Kind quickstart&lt;/a&gt; one step further. Instead of applying a stack with &lt;code&gt;kubectl&lt;/code&gt;, you&amp;rsquo;ll commit its declaration and let Argo CD deliver it. It creates a separate ConfigMap and keeps &lt;code&gt;hello-stack&lt;/code&gt; untouched.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Argo CD&lt;/strong&gt; syncs the manifest. &lt;strong&gt;IaC Stack Controller&lt;/strong&gt; sees the change in Kubernetes and starts an attempt. &lt;strong&gt;Argo Workflows&lt;/strong&gt; runs the registered pipeline. They are separate systems: a synced manifest does not mean the infrastructure change has completed.&lt;/p&gt;</description></item><item><title>Build a custom runner image</title><link>https://iacstack.io/docs/tutorials/custom-runner/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/custom-runner/</guid><description>&lt;p&gt;The controller image is not the runner. Argo starts a Pod for each execution step using the image declared in the template. The runner implements your IaC automation and uses the versioned &lt;code&gt;iacstack&lt;/code&gt; CLI to communicate through the execution contract. The two official runners contain Bash, Git, jq, CA certificates, the CLI and their respective IaC engine. They run as UID/GID 10001 and use &lt;code&gt;/tmp&lt;/code&gt; as HOME. They do not include AWS CLI or kubectl.&lt;/p&gt;</description></item><item><title>Build a pipeline from scratch</title><link>https://iacstack.io/docs/tutorials/build-pipeline/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/build-pipeline/</guid><description>&lt;p&gt;Begin with the working quickstart. The &lt;a href="https://iacstack.io/examples/consumer/workflow.yaml"&gt;WorkflowTemplate and RBAC&lt;/a&gt; implements the steps below. The snippets explain each part, not separate manifests to apply.&lt;/p&gt;
&lt;h2 id="1-declare-the-entrypoint-and-identity"&gt;1. Declare the entrypoint and identity&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;apiVersion&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;argoproj.io/v1alpha1&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;kind&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;WorkflowTemplate&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;metadata&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;name&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;iacstack-governed-lab&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;namespace&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;argo-workflows&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;spec&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;entrypoint&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;pipeline&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;serviceAccountName&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;iacstack-quickstart&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;arguments&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;parameters&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;name&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;intent&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The controller fills the intent. The ServiceAccount needs target/backend permissions and Argo task-result permissions; authorization adds get on IaCStack and patch on status. The lab restricts this to three named stacks; production also needs claim-only admission enforcement.&lt;/p&gt;</description></item><item><title>Migrate a GitHub Actions pipeline</title><link>https://iacstack.io/docs/tutorials/migrate-github-actions/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/migrate-github-actions/</guid><description>&lt;p&gt;GitHub Actions YAML is not imported directly. Preserve infrastructure, modules, state and reusable scripts; adapt orchestration and identity.&lt;/p&gt;
&lt;h2 id="before-and-after"&gt;Before and after&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Existing GitHub Actions plan job fragment&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#f92672"&gt;jobs&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;plan&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;runs-on&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;ubuntu-latest&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#f92672"&gt;steps&lt;/span&gt;:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;uses&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;actions/checkout@v4&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;uses&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;hashicorp/setup-terraform@v3&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;run&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;terraform init -input=false&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;run&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;terraform validate&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; - &lt;span style="color:#f92672"&gt;run&lt;/span&gt;: &lt;span style="color:#ae81ff"&gt;terraform plan -input=false -out=change.plan&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Existing mechanism&lt;/th&gt;
 &lt;th&gt;Argo equivalent&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;checkout/ref&lt;/td&gt;
 &lt;td&gt;Validated intent and immutable revision&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;setup-terraform&lt;/td&gt;
 &lt;td&gt;Pinned runner or own image with CLI&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;jobs/needs&lt;/td&gt;
 &lt;td&gt;Steps or DAG&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;upload-artifact&lt;/td&gt;
 &lt;td&gt;PVC or artifact repository&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;environment approval&lt;/td&gt;
 &lt;td&gt;Argo suspend/policy and separate controller grant&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;OIDC role&lt;/td&gt;
 &lt;td&gt;Cluster workload identity&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;job exit&lt;/td&gt;
 &lt;td&gt;Argo status plus functional result&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="put-the-plan-script-in-the-runner"&gt;Put the plan script in the runner&lt;/h3&gt;
&lt;p&gt;In this fragment, &lt;code&gt;command: [bash]&lt;/code&gt; selects the interpreter. &lt;code&gt;source&lt;/code&gt; is the Bash code Argo passes to that interpreter: it calls the &lt;code&gt;plan.sh&lt;/code&gt; you already use in your pipeline.&lt;/p&gt;</description></item><item><title>Workspace and artifacts</title><link>https://iacstack.io/docs/tutorials/workspace-artifacts/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/tutorials/workspace-artifacts/</guid><description>&lt;p&gt;A new Argo Pod does not inherit the previous Pod&amp;rsquo;s files or environment. The controller transports small execution signals, not plans, state or workspaces.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Transport&lt;/th&gt;
 &lt;th&gt;Use&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;emptyDir&lt;/td&gt;
 &lt;td&gt;Containers in the same Pod only&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Per-workflow PVC&lt;/td&gt;
 &lt;td&gt;Sequential steps at identical paths; needs dynamic storage&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Argo artifacts / S3&lt;/td&gt;
 &lt;td&gt;Cross-Pod transport and retained evidence; configure repository and identity&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Existing external store&lt;/td&gt;
 &lt;td&gt;Workflow owns download, verification and access&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The &lt;a href="https://iacstack.io/examples/consumer/workflow.yaml"&gt;example pipeline template&lt;/a&gt; uses a PVC mounted at /workspace and volumeClaimGC. The IaC state remains in the Kubernetes backend. For EKS, the recommended reference is S3 artifacts plus a separate S3 state backend, not a shared PVC. See &lt;a href="https://iacstack.io/docs/eks-labs/"&gt;EKS lab setup&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>