title: aws code deploy can't access bash variable
body: <p>I have a script I'm run as root user in a BeforeInstall hook, I'm trying to access some variables I have placed into the <code>/root/.bashrc</code>, but I've been unable to get the variable contents to display?</p>
  
  <p>Is there something I'm missing from being able to access the variable? </p>
  
  <pre><code>/root/.bashrc
  ...
  export FOO="bar"
  ...
  </code></pre>
  
  <p>deployment_script run as <code>root</code> in a BeforeInstall hook</p>
  
  <pre><code>#!/bin/bash
  
  echo `whoami` // prints root
  ...
  echo $FOO  // prints nothing
  ...
  MY_VAR=`echo $FOO`
  echo $MY_VAR // prints nothing
  ...
  </code></pre>
  
  <p>I've tried sourcing the <code>/root/.bashrc</code>, I've tried placing the variables in the <code>/root/.profile</code>,  I can't eval anything that includes them b/c it still comes up empty.</p>