How do you connect vertex groups to an armature?
What you could do is give your bones the name of the vertex group they are supposed to control then parent your mesh to the armature with a simple CtrlP > Armature Deform. Each bone will automatically control the group with the same name.