chmod in .ebextensions on AWS Elastic Beanstalk failing

Question:

I’m trying to automate the setup of my Symfony2 Application using the .ebextensions *.config files but its failing when I try to execute a chmod. This is my first time on AWS so I’ve hit a bit of a wall

Here is the config of my symfony.config file in .ebextensions:

I can run all of those commands on CLI when I ssh in. When I review the logs I get the following which isn’t very helpful Error occurred during build: Command 01_chmod_cache failed

I think it might have something to do with the user thats executing commands but I don’t know where I can configure this

Can anyone assist ?

Cheers.

Answer:

Maybe adding quotes to your commands will help:

Leave a Reply