With our AppSpec file and scripts in place and the EC2 instance set up with the CodeDeploy agent as well, the final thing left is to configure AWS CodeDeploy and tie these things together:
- Start off by logging into the AWS CodeDeploy service by selecting URL https://console.aws.amazon.com/codedeploy/home.
- Since this is the first time we are using CodeDeploy, select the Get Started Now option. Here, you will be prompted to select either a Sample deployment that deploys a sample application on the EC2 instances or, alternatively, go for a Custom deployment if you have your code and EC2 instances up and running. In this case, we will select the Custom deployment option itself.
- In the