title: AWS user-data initial bash script
body: <p>I was trying to use <code>user data</code> section to initialize EC2 and run some bash scripts on instance startup. Somehow all the scripts are running except the (*) statement. Does anyone know what is happening? </p>
  
  <pre><code>#!/bin/bash
  cd /home/ubuntu
  apt-get update -y
  apt-get -y install nodejs npm build-essential libssl-dev awscli ruby2.0
  
  curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh &gt; 123
  curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash (*) 
  </code></pre>