Open nitrocode opened 3 years ago
I would also love to see this feature. Would be really handy for creating resources from a list of maps that have slightly different requirements (I.e some default values need to be overridden using additional map keys).
THis is one of the single biggest downsides to using terraform at the moment. If I want to extend a resource using arbitrary terraform code I currently cannot do so. I need to define a dynamic with every single possible attribute defined underneath. You need to know exactly what could be passed in.
I would really like to be able to pass in arbitrary HCL and have that executed in place.
It would be nice to pass in a single argument to a resource using a map.
local
with base arguments for a specific resource, then using amerge()
function per resource to add (or apply a default) resource specific args that append the base resource argsFor instance, in python
Perhaps something like this in terraform