Skip to content

Instantly share code, notes, and snippets.

@tecmaverick
Created June 25, 2020 09:57
Show Gist options
  • Save tecmaverick/8d5135e6e01eb35c0ab27e8c5a4055fe to your computer and use it in GitHub Desktop.
Save tecmaverick/8d5135e6e01eb35c0ab27e8c5a4055fe to your computer and use it in GitHub Desktop.
Cloud9 Custom AMI Prep
sudo yum update -y
#Python 2.7 installed
python --version
sudo yum -y install python36
sudo yum install python3 -y
#Install Node
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
. ~/.bashrc
nvm install node
#Install GCC and other dev tools
sudo yum -y groupinstall "Development Tools"
#Cloud9 Installer
curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash
#Get the IP range
curl https://ip-ranges.amazonaws.com/ip-ranges.json -O
#Install JQ
sudo yum install jq -y
#Get C9 IP range for specific region
jq '.prefixes[] | select((.region=="ap-southeast-2") and (.service=="CLOUD9"))' < ip-ranges.json
#Copy the public SSH Key (from AWS Console) and paste in
sudo vim ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment