Automates the initial setup of an ec2 instance