Skip to content

Instantly share code, notes, and snippets.

@ivarprudnikov
Created March 8, 2013 00:25
Show Gist options
  • Save ivarprudnikov/5113185 to your computer and use it in GitHub Desktop.
Save ivarprudnikov/5113185 to your computer and use it in GitHub Desktop.
AWS Ubuntu ami user data to init instance. Installs node.js, creates upstart script and runs it.
#!/bin/bash
# install node.js
apt-add-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y python-software-properties nodejs npm git make g++
# install girror (https://github.com/eladb/node-girror)
npm install -g girror
# create /etc/init/node.conf
echo 'actual node.conf code' > /etc/init/node.conf
# start it
start node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment