Is there a way to get Terraform to use the real provider for, say, all data resources, or all data resources of a specific type?
I know there’s provider aliasing, like the example here, but in this case, I want to mock the provider for all resources, but use the real provider for things like generating policy documents.
This also kind of highlights another gap, which (while I understand the reason it wasn’t built this way) is that it would be really nice to have some sort of plugin or functionality for allowing more flexibility for defining better fake data in mock providers.
Thanks. Yes, I thought about an approach like this, but won’t this also require me to use the two different provider aliases within the module itself (and thus also requiring defining the aliased provider everywhere I call the module as well)? This is the rabbithole I was trying to stay out of.