create resource from template procedure