mercredi 4 février 2015

Setting directory owner and permission with appspec.yml through Amazon Web Service CodeDeploy

I'm deploying a Node.js application through Codeship using the CodeDeploy AWS deployment system.


I am making use of the appspec.yml file to set the owner and permissions of one of the deployed directory.


I want to allow read/write for any files that will be created in a specified folder of the deployment. Files will be created by the web application once it starts running.


Currently my appspec.yml contains the following:



version: 0.0
os: linux
files:
- source: /
destination: /var/www/APPLICATION_NAME
permissions:
- object: /var/www/APPLICATION_NAME/tmpfiles
mode: 644
owner: ec2-user
type:
- directory




Aucun commentaire:

Enregistrer un commentaire