Last active
December 10, 2018 05:03
-
-
Save hugoprudente/d028965eb1aa5b86a8ff8e7b2d58c142 to your computer and use it in GitHub Desktop.
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
#!/bin/bash -e | |
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 | |
# My Customization of AWS Cloud9 to create a ALL-in-ONE Devops test box capable to handle all AWS Services, SDK's and | |
# other tools and partners available in the market, this should be used together with my personal Cloud9 CloudFormation setup. | |
echo BEGIN `date '+%Y-%m-%d %H:%M:%S'` | |
mkdir -p /home/ec2-user/bin/ | |
sudo yum install -y ecs-init git wget lynx zip | |
## installing Vundle | |
git clone https://github.com/VundleVim/Vundle.vim.git /home/ec2-user/.vim/bundle/Vundle.vim | |
## installing bash-it as cloud9 doesn't support zsh :( | |
git clone --depth=1 https://github.com/Bash-it/bash-it.git /home/ec2-user/.bash_it | |
/home/ec2-user/.bash_it/install.sh -s | |
source /home/ec2-user/.bashrc | |
## Add tmux to all | |
## Cloud 9 code environments | |
### C++ and C++ SDK Dependencies | |
sudo yum -y install gcc-c++ | |
sudo yum -y install libcurl-devel openssl-devel libuuid-devel cmake3 | |
### Python and Python SDK Depedencies | |
sudo yum -y install python27 # Installs Python 2.7. | |
sudo yum -y install python36 # Installs Python 3.6. | |
### .NET Core and .NET SDK Dependencies | |
sudo yum -y install libunwind | |
### Node.js NVM | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash | |
### PHP 5.x and 7.x and Dependencies | |
sudo yum -y install php56 php71 | |
### GoLang and Dependencies | |
wget https://storage.googleapis.com/golang/go1.9.3.linux-amd64.tar.gz # Download the Go installer. | |
sudo tar -C /usr/local -xzf ./go1.9.3.linux-amd64.tar.gz # Install Go. | |
rm ./go1.9.3.linux-amd64.tar.gz # Delete the installer. | |
### TypeScript | |
npm install -g typescript | |
### Configre the CLI's | |
## Installing ecs-cli | |
curl -o /home/ec2-user/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest | |
## Installing aws-cli | |
sudo yum remove aws-cli | |
sudo /usr/local/bin/pip install --upgrade awscli aws-shell | |
## Installing eb-cli | |
sudo /usr/local/bin/pip install --upgrade awsebcli | |
## Installing kubectli-cli | |
curl -o /home/ec2-user/bin/kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/linux/amd64/kubectl | |
## Installing xray daemon | |
curl -o /tmp/xray.zip https://s3.dualstack.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-linux-2.x.zip | |
unzip /tmp/xray.zip -d /home/ec2-user/bin/ | |
## Installing | |
echo END `date '+%Y-%m-%d %H:%M:%S'` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment