<p>My module <code>abc</code> contains an instance of <code>redis-ha</code> deployed to Kubernetes via helm compliments of <a href="https://github.com/helm/charts/tree/master/stable/redis-ha" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/redis-ha</a>. I want to <code>taint</code> this resource. When I <code>terraform state list</code> I see the resource listed as:</p>

<ul>
<li>module.abc.module.redis.helm_release.redis-ha[3]</li>
</ul>

<p>My understanding from <a href="https://github.com/hashicorp/terraform/issues/11570" rel="nofollow noreferrer">https://github.com/hashicorp/terraform/issues/11570</a> is that the <code>taint</code> command pre-dates the resource naming convention shown in <code>state list</code>. As of v0.12 it will honour the same naming convention. </p>

<p>I'm unfortunately not in a position to upgrade to v0.12.</p>

<p>How do I go about <code>taint</code>-ing the resource <code>module.abc.module.redis.helm_release.redis-ha[3]</code> pre-v0.12? </p>

<p>I'm happy to taint the entire <code>redis-ha</code> deployment.</p>

Frank
<p>In Terraform v0.11 and earlier, the <code>taint</code> command can work with that resource instance like this:</p>

<pre><code>terraform taint -module=abc.redis helm_release.redis-ha.3
</code></pre>

<p>From Terraform v0.12.0 onwards, that uses the standard resource address syntax:</p>

<pre><code>terraform taint module.abc.module.redis.helm_release.redis-ha[3]
</code></pre>
