Lock the reregister hosts from aws task