title: EACCES (Permission denied @ rb_sysopen on ElasticBeanStalk
body: <p>I have a Rails ActiveJob that attempts to write some files.  When the ActiveJob is invoked by the controller, it fails with the above error, trying to write a file as follows: Errno::EACCES (Permission denied @ rb_sysopen - /home/ec2-user/scrubarea/landing/5mBs8mq85ZFKVnqijeKZuNuh).</p>
  
  <p>This happens even if the directory has 777 permissions.</p>
  
  <p>However, if I ssh into the EC2 image, access the Rails console, and run the job using perform_now, it works.  </p>
  
  <p>Is there some other AWS security that won't let an application write files?</p>