@grk684 you have this option in aws cli https://docs.aws.amazon.com/cli/latest/reference/ec2/reboot-instances.html , you can execute it as bash line just before your deploy command and then wait for some time (depending on your instance how long it takes to start)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.