How To Set Folder Permissions in Elastic Beanstalk Using YAML File?

前端 未结 3 1372
梦谈多话
梦谈多话 2021-01-05 16:46

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

3条回答
  •  时光说笑
    2021-01-05 17:13

    It looks like you are using invalid .net accounts (unless these are custom accounts you created). That is part of the reason why your permissions are not being set. They should be IUSR or IIS_IUSRS

    Furthermore, container_commands executes after your app/server environment has been setup, but before your deployment has started. There is no other way to set permissions on files/folders within your deployment directory other than using a wpp.targets file within visual studio.

    The following SO post is a good read using wpp.targets to solve your issue. Can Web Deploy's setAcl provider be used on a sub-directory?

提交回复
热议问题