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:

commands:
  0_mkdir:
    command: mkdir C:\\AppFolder\\

  1_set_iuser_permissions:
    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, 2019 in AWS by Archana
• 5,640 points
2,896 views

1 answer to this question.

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, 2019 by datageek
• 3,090 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
• 4,170 points
4,180 views
+2 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
• 58,090 points
2,472 views
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, 2019 in AWS by datageek
• 3,090 points
1,350 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP