Currently, when Autospotting replaces an On-Demand instance with a spot instance, it immediately adds the spot instance to the Elastic Load Balancer (ELB). However, this causes an issue when the CodeDeploy deployment process is still in progress. The spot instance is terminated by the ELB's Health Check due to inadequate response.
Is there any configuration that can be set to make Autospotting wait until the deployment is completed before attaching the instance to the ELB?