I am using AWS codedeploy for application deployment along with git. I have created a appspec.yml. In files section i need to copy a file from different folder (eg :/home/ec2-user/sample.war) to destination.
version: 0.0
os: linux
files:
- source: /home/ec2-user/deploy/sample.war
destination: /usr/share/tomcat6/webapps/
source property in file section only looks for files inside the codedeploy agent directory (eg : /opt/codedeploy-agent/deployment-root/1d4de60d-99c1-4e40-bd14-335b6f8b5633/d-sfjksdjfkl/home/ec-user/sample.war). As per AWS documentation it is correct.Is any other option available to copy the file from different location of ec2 instance? or any variable available to locate the aws codedeploy agent folder at runtime?