r/Terraform • u/WonderBeast2 • 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 = [{},{...}]
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/iamabdullah 22h ago
No wrapper. No need… we stick to defaults almost always.
0
u/[deleted] 1d ago
[deleted] — view deleted comment