Cloud9 Install

Usually Cloud9 will create a distinct instance that can be used as a jump-host. By including this post-install script we are going to prepare the headnode to be used as a cloud9 instance instead.

cat > << EOF
curl -sL | bash -

yum install -y nodejs
echo "u=rwx,g=rx,o=rx ~"
chmod u=rwx,g=rx,o=rx ~

echo "Installing Development Tools"
yum -y groupinstall "Development Tools"

echo "Intalling Cloud9"
wget -q 
chmod +x
sudo -H -u ec2-user bash -c ./
chmod +x
aws s3 cp s3://${BUCKET_NAME}/scripts/