Ajax form an multi-select
It is not possible to create a select element in an ajax callback, because the form builder needs to know about it.

Move all code from ajax callback to buildFrom(). Make this code conditional on form_state. 

Your callback contains only:

return $form['deployment_wrapper'];