<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Iac on EdFig.dev</title><link>https://hugo.edfig.dev/tags/iac/</link><description>Recent content in Iac on EdFig.dev</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 29 Aug 2026 04:35:21 +0000</lastBuildDate><atom:link href="https://hugo.edfig.dev/tags/iac/index.xml" rel="self" type="application/rss+xml"/><item><title>Index out of range in terrafrom</title><link>https://hugo.edfig.dev/docs/posts/index-out-of-range-in-terrafrom/</link><pubDate>Wed, 25 Mar 2026 21:35:00 -0700</pubDate><guid>https://hugo.edfig.dev/docs/posts/index-out-of-range-in-terrafrom/</guid><description>&lt;p>Accidently nuked half of some resources and broke DNS (yes, it is in fact always DNS). One of the first things I learned and is on a lot of guides for terraform is how `count` works. It’s one of the meta-arguments you can use with most resources, others are&lt;/p>
&lt;p>```
depends_on
count
for_each
provider / providers
lifecycle
```&lt;/p>
&lt;p>Here’s an example for count before I show my oops.&lt;/p>
&lt;p>```hcl
variable &amp;ldquo;names&amp;rdquo; {
default = [&amp;ldquo;alice&amp;rdquo;, &amp;ldquo;bob&amp;rdquo;, &amp;ldquo;carol&amp;rdquo;]
}&lt;/p></description></item></channel></rss>