Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple bash script to bootstrap an EC2 instance with cfn and node.js
cd /home/ec2-user
sudo yum update -y aws-cfn-bootstrap
sudo yum install -y aws-cli
sudo yum install -y python27-devel python27-pip gcc
curl -sL https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum install -y nodejs
sudo npm install pm2 -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment