<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Terraform on /prəˈtruːd/</title>
    <link>https://to.protru.de/tags/terraform/</link>
    <description>Recent content in Terraform on /prəˈtruːd/</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 16 Jan 2022 18:44:15 +0100</lastBuildDate>
    <atom:link href="https://to.protru.de/tags/terraform/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Optional Terraform Blocks</title>
      <link>https://to.protru.de/optional-terraform-blocks/</link>
      <pubDate>Sun, 16 Jan 2022 18:44:15 +0100</pubDate>
      <guid>https://to.protru.de/optional-terraform-blocks/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;#the-solution&#34; &gt;&lt;strong&gt;TL;DR&lt;/strong&gt; 🚀&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Since Terraform &lt;code&gt;0.12.0&lt;/code&gt; there are &lt;a href=&#34;https://www.terraform.io/language/syntax/configuration#arguments-and-blocks&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;arguments and blocks&lt;/a&gt;;&#xA;just two ways of configuring resources.&#xA;&amp;ldquo;An argument assigns a value to a particular name&amp;rdquo; and a &amp;ldquo;block is a container for other content&amp;rdquo; (&lt;a href=&#34;https://www.terraform.io/language/syntax/configuration#arguments-and-blocks&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;source&lt;/a&gt;).&#xA;Not a very enlightening definition, but after all &amp;ldquo;just&amp;rdquo; syntax anyway.&#xA;Don&amp;rsquo;t get me wrong, syntax (and therefore UX) is one of the most important aspects of technology in my point of view.&lt;/p&gt;&#xA;&lt;p&gt;Given some blocks may need to be repeated, Terraform has a way of making them &lt;a href=&#34;https://www.terraform.io/language/expressions/dynamic-blocks&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;dynamic&lt;/a&gt;. Great, but what if Terraform you want to make them optional?&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
