Skip to content

Instantly share code, notes, and snippets.

Created June 25, 2020 09:20
What would you like to do?
Shell script to configure AMI from Packer
set -x
# For Node
curl -sL | sudo -E bash -
# For xmlstarlet
sudo yum install -y
sudo yum update -y
sleep 10
# Setting up Docker
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
# Just to be safe removing previously available java if present
sudo yum remove -y java
sudo yum install -y python2-pip jq unzip vim tree biosdevname nc mariadb bind-utils at screen tmux xmlstarlet git java-1.8.0-openjdk nc gcc-c++ make nodejs
sudo -H pip install awscli bcrypt
sudo -H pip install --upgrade awscli
sudo -H pip install --upgrade aws-ec2-assign-elastic-ip
sudo npm install -g @angular/cli
sudo systemctl enable docker
sudo systemctl enable atd
sudo yum clean all
sudo rm -rf /var/cache/yum/
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment