Skip to content

Instantly share code, notes, and snippets.

@damianesteban
Last active July 26, 2017 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damianesteban/bd1f0422269d20f4c9c87606b7f76eea to your computer and use it in GitHub Desktop.
Save damianesteban/bd1f0422269d20f4c9c87606b7f76eea to your computer and use it in GitHub Desktop.
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