Using Amazons OpsWorks
I'm able to get a PHP App Server to get initialised, it downloads our project from git and sets it up, I've got a custom recipe being run on Setup that works and downloads composer, but this gets run before the git repository is downloaded, so too early to try and change permissions.
I've currently got a recipe in Deploy that changes permissions on some files that were created as part of downloading our git project, however this recipe doesn't seem to get fired when setting up a new instance, I can only run it by manually deploying an app.
How can I have a recipe run after the git project has been downloaded by chef, when an instance is created (so when the site auto scales and a new instance is fired up, the recipe is run to set file permissions correctly)