A large portion of this feature will need to be handled in the inventory script, as it will need to be merged into the final inventory json.
A priority level may need to be added to the resource to help the inventory script determine value precedence if there are multiple resources with the same inventory_hostname and key. It would seem reasonable that this could happen when using terraform module structures, which can be somewhat inflexible once implemented, and wanting to override a variable in a specific case.
This is probably enough work for one weekend. Will open a new issue for the priority property idea. More work needs to be done with the inventory script before I can support it anyway.
Closes #4.
A large portion of this feature will need to be handled in the inventory script, as it will need to be merged into the final inventory json.
A
priority
level may need to be added to the resource to help the inventory script determine value precedence if there are multiple resources with the sameinventory_hostname
andkey
. It would seem reasonable that this could happen when using terraformmodule
structures, which can be somewhat inflexible once implemented, and wanting to override a variable in a specific case.