add EC2 perl snippets and user-data.sh