Since the application lies in our CC-AWSSTAR-APP, the CodeCommit repository is a NodeJS application, so we need to install NodeJS and npm packages in the instance. To do that, we need to perform the following steps:
- Launch an EC2 instance preferably CentOS/Red Hat/Amazon Linux in the same region and install the necessary packages by running the following commands:
# yum update -y # yum install epel-release curl wget gcc make g++ bind-utils -y # yum install nodejs -y # npm install -g forever
- Once we are done installing the application-dependent package, we have to install the AWS CodeDeploy agent tool. To install the agent, refer How to do it... section of Deploy a static application in an EC2 instance from S3 Bucket using ...