Adding automated AMI generation to EC2 with Ruby server start up script

why doe we have to use sudo now?