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 in AWS by Archana
• 5,560 points
195 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 by datageek
• 3,040 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,090 points
579 views
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
• 4,090 points
3,789 views
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,520 points
156 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 in AWS by datageek
• 3,040 points
55 views