r/Terraform • • 1d ago

Azure Anyone using a thin wrapper module around Azure Verified Modules (AVM)? How has the experience been?

Hi all,

We're evaluating whether to use AVM Terraform modules directly or introduce a single layer of wrapper modules around them to enforce organisational standards, defaults, tags, and common configuration patterns.

For those who have gone down the wrapper route, I'd love to hear about your real-world experience:

Did the wrapper provide enough value to justify the extra abstraction layer?

How has Terraform state management been?

terraform state list

terraform state show

imports

moved blocks / refactoring

Have longer resource addresses caused any operational headaches?

How difficult have AVM version upgrades been when a wrapper sits in between?

Have you encountered issues exposing new AVM features because the wrapper needed updating first?

Did the wrapper improve developer experience, or did it become something else that needed maintenance?

If you could start over, would you:

use AVM directly,

use a thin wrapper,

or build a more opinionated platform module?

For context, I'm specifically considering a relatively thin wrapper around AVM modules (Storage, Key Vault, App Service, etc.) rather than a large platform module that bundles multiple resources together.

Interested in hearing both success stories and regrets, especially from teams that have been operating this pattern for a year or more in production.

Thanks!

Edit: Above was ai gen question. Basically i want to know how instead of keeping soup of tfvars values i want to use List of Objects for example storage_accounts = [{},{...}]

1 Upvotes

7 comments sorted by

3

u/mechaniTech16 1d ago

I think it’s pretty standard to put a thin wrapper layer for common workloads that understand your infrastructure, security, and governance posture.

AVM is great because it comes defaulted to Microsoft recommendations but those may not apply entirely to your org. That means you’d have to have every deployment make the same overrides. Seems inefficient whereas you can apply a thin wrapper that folks can use at scale knowing it’s already configured to what your org allows/supports.

1

u/WonderBeast2 1d ago

Thanks that helps ! i will try out few ideas.

1

u/iamabdullah 22h ago

No wrapper. No need… we stick to defaults almost always.

1

u/WonderBeast2 15h ago

How do you handle cases where you need to install multiple instances of something. The tfvars would look messy.

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/WonderBeast2 1d ago edited 1d ago

Overhead .. introduced

Curious, what overhead? i have been creating child modules manually but lately its becoming a bit of difficult as demand growing. Id be creating a thin layer which handles :

  1. Private Ep for paas rsources.
  2. Disable public network
  3. Looping through tfvars list of complex object and call avm
  4. Any more settings that aligns with our org standard. (Naming, Central diagnostics, Roles, Tags, Locks)

2

u/mechaniTech16 1d ago

Shadow IT, not a fan. Usually you have the ability to toggle things on/off. If a module doesn’t, then raise an issue. The module owners are always willing to support the community. Now when new features come out you won’t benefit from the open source work