Use this script as user-data when launching AWS Ubuntu EC2 instance.