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

0 votes

I have created a Web API Elastic Beanstalk app using C#. It 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

The permissions aren't set. I can't figure out the issue. Any suggestions

Mar 15 in AWS by Archana
• 5,360 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I am not sure about using Yaml. Try it out with JSON. Also, It looks like you are using invalid .net accounts. Check the out. That is part of the reason why your permissions are not being set. 

Hope this helped!

answered Mar 15 by datageek
• 2,870 points

Related Questions In AWS

0 votes
1 answer

How to copy a folder from S3 to Elastic Beanstalk instance on its creation?

I had encountered similar problem. But i ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 3,770 points
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 3,770 points
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,120 points
0 votes
1 answer
0 votes
1 answer

How To Upload Images to Amazon S3 Using Perl?

That code won't upload the file - it's simply ...READ MORE

answered Mar 15 in AWS by datageek
• 2,870 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.