terraform/config: get resource templates loaded and associate them from within other resources