title: ASP.Net Core at AWS EBS - write permissions and .ebextensions
body: <p>We have deployed ASP.Net Core app on AWS EBS and have problem with writing files on it.</p>
  
  <blockquote>
    <p>Access to the path <code>C:\inetpub\AspNetCoreWebApps\app\App_Data\file.txt</code> is denied</p>
  </blockquote>
  
  <p>I added <code>.ebextensions\[app_name].config</code> but it did nothing </p>
  
  <pre><code>{
      "container_commands": {
          "01": {
              "command": "icacls \"C:/inetpub/AspNetCoreWebApps/app/App_Data\" /grant DefaultAppPool:(OI)(CI)"
          }
      }
  }
  </code></pre>
  
  <p>I know that this is permission problem because when I RDP to machine and changed permission manually it solved problem. I would like to it during deploy using <code>.ebextensions\[app_name].config</code></p>