I am having trouble figuring out how to setup continuous deployment for my node.js application (through aws CodeDeploy). So far I completed following steps:
- Created IAM user with required permissions
- Created Elastic Beanstalk instance running node.js
- Created CodeDeploy application and linked it to my EC2 instance and IAM user
I have also signed up and set up tests to use with CircleCI a CI I will use for my deployment.
Now I am stuck at stage where I need to create an appspec.yml
file that will correctly deploy the application. I am not sure about this one at all, i.e. what source / destination should I specify etc.. Do I need to run my npm build
script (creates dist/ folder) at this stage or during my CircleCI tests / builds?