AWS CodeDeploy AfterInstall script is being run from code-deploy agent dir
问题 I'm trying to run AfterInstall script in AWS code deploy, but it is being run from the /opt/codedeploy-agent/ dir instead of my app directory. This is how appspec.yml file looks like: version: 0.0 os: linux files: - source: / destination: /tmp/epub hooks: AfterInstall: - location: server/install-packages.sh runas: root As you can see it's a basic example. Now, the bash script looks like this: #!/bin/bash npm install I just want to npm install and that's it. Unfortunately I'm getting the error