Why You See `this` in Terraform Modules — And Why You Should Use It Too
· 4 min read
If you’ve explored the Azure Verified Modules (AVM), you may have noticed a consistent pattern in how resources are named: the use of this
. Whether it’s a virtual network, a private DNS zone, or a key vault, many AVM modules name their primary resources simply as this.
At first glance, this might seem odd. Terraform lets you name your resources whatever you want — so why not something more descriptive?
As it turns out, this isn’t just a naming shortcut — it’s a thoughtful convention borrowed