i ended up figuring it out. used local.command + the aws sdk to get the current variant id and deregister it before running an update on the endpoint. Trigger the local.command by having it run an echo in the beginning and passing the newest variant id to the echo, so every time we change the variant id it executes and deregisters. Then I update the endpoint, then let new aws.appautoscaling.target re-register the endpoint