Skip to content

Instantly share code, notes, and snippets.

@gtebbutt
Created November 15, 2016 12:56
Show Gist options
  • Save gtebbutt/f6ecc971da7c2cf6b0736373cfdbcdb7 to your computer and use it in GitHub Desktop.
Save gtebbutt/f6ecc971da7c2cf6b0736373cfdbcdb7 to your computer and use it in GitHub Desktop.
AWS User Data shell script to set up Erlang & Elixir on Amazon Linux
#!/bin/bash
yum update -y
yum install gcc ncurses-devel perl openssl-devel openssl git -y
mkdir /erlang
cd /erlang
export HOME=/erlang
wget https://raw.githubusercontent.com/kerl/kerl/master/kerl
chmod a+x kerl
./kerl build 19.1 current
./kerl install current /erlang/install
. /erlang/install/activate
wget https://github.com/elixir-lang/elixir/archive/v1.3.4.zip
unzip v1.3.4.zip
cd elixir-1.3.4/
make
echo ". /erlang/install/activate" >> /home/ec2-user/.bashrc
echo "PATH=\$PATH:/erlang/elixir-1.3.4/bin" >> /home/ec2-user/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment