I have a problem, that when I launch an instance from an AMI, the instance doesn't respond on ssh or http, but it works normally after I restart it (so from the 2nd start).
I'm still troubleshooting this behaviour, so I decided to try to ask the following:
What's the best/most simple way to make an instance reboot after it's first launch/start from an AMI in an autoscaling environment?
AMI is an Amazon Linux one (kernel 4.4 or 4.9).
Thanks!
UPDATE: Fixed it :) Now a new instance from that AMI launches & starts working from the 1st boot! :)
I've updated several system packages (that helped), removed 2nd network interface, custom route & iptables rules, which were applied at boot (removed all that before with no result).