This Video will teach you how you can pre-execute commands while installing the EC2 instance. For step by step article check below link: https://linuxroutes....
Watch this video on YouTube