Make resources a hash in service definition