terraform/config: allow resource_template to be evaluated after merging multiple configs