title: How To Set Folder Permissions in Elastic Beanstalk Using YAML File?
body: <p>I have a C# Web API Elastic Beanstalk app which needs a folder outside the deployment directory that the IUSER and IIS_USERS users can write to. I've created a .config file and put this in the top level .ebextensions folder in my project. The contents are below:</p>
  
  <pre><code>commands:
    0_mkdir:
      command: mkdir C:\\AppFolder\\
  
    1_set_iuser_permissions:
      command: cacls C:\\AppFolder\\ /t /e /g IUser:f IIS_Users:f
  </code></pre>
  
  <p>However while the folder is created successfully the permissions aren't set. If anyone has any idea what I am doing wrong I would be hugely grateful. Big thanks in advance.</p>