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:
command: mkdir C:\\AppFolder\\
command: cacls C:\\AppFolder\\ /t /e /g IUser:f IIS_Users:f
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.