Created
June 25, 2020 09:57
-
-
Save tecmaverick/8d5135e6e01eb35c0ab27e8c5a4055fe to your computer and use it in GitHub Desktop.
Cloud9 Custom AMI Prep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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