Cloud9

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 > 02.install.cloud9.master.sh << EOF
curl -sL https://rpm.nodesource.com/setup_12.x | 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 https://dhj20r2nmszcd.cloudfront.net/static/c9-install.sh 
chmod +x c9-install.sh
sudo -H -u ec2-user bash -c ./c9-install.sh
EOF
chmod +x 02.install.cloud9.master.sh
aws s3 cp 02.install.cloud9.master.sh s3://${BUCKET_NAME}/scripts/