title: Where does my application code sit on AWS Elastic Beanstalk EC2 Instance?
body: <p>I have deployed a Python Flask server to AWS EB.</p>
  <p>I have been able to SSH into the EC2 instance and when I go to the root directory and type in the command <code>ls</code> I get this;</p>
  <pre><code>bin  boot  dev  etc  home  lib  lib64  local  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
  </code></pre>
  <p>After looking around I made the assumption that my application code is located in the</p>
  <pre><code>/home/webapp
  </code></pre>
  <p>But here I have a problem, I am unable to <code>cd</code> into the directory as I get a permission error</p>
  <pre><code>-bash: cd: webapp/: Permission denied
  </code></pre>
  <p>And when I use <code>sudo</code> I don't get an error but the directory does not change</p>
  <pre><code>[ec2-user@ip-###-##-##-### home]$ sudo cd webapp/
  [ec2-user@ip-###-##-##-### home]$ 
  </code></pre>
  <p>I have two questions;</p>
  <ol>
  <li>Where is my application code?</li>
  <li>Assuming my application code is in the directory <code>webapp</code> why is it that <code>sudo cd</code> does not work?</li>
  </ol>