0% found this document useful (0 votes)
3 views

EC2 Prerequisites

The document provides instructions for installing Java and Tomcat 9 on a Linux system using YUM package manager, including starting the Tomcat service. It also details the steps to install the CodeDeploy agent, referencing AWS documentation and requiring the user to adjust the S3 bucket URL based on their region. Finally, it includes commands to update the system, install necessary packages, and manage the CodeDeploy agent service.

Uploaded by

gowtham nani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

EC2 Prerequisites

The document provides instructions for installing Java and Tomcat 9 on a Linux system using YUM package manager, including starting the Tomcat service. It also details the steps to install the CodeDeploy agent, referencing AWS documentation and requiring the user to adjust the S3 bucket URL based on their region. Finally, it includes commands to update the system, install necessary packages, and manage the CodeDeploy agent service.

Uploaded by

gowtham nani
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

installing java:

sudo yum install java-1.8.0 -y


yum update
yum install tomcat9 tomcat9-webapps -y
sudo service tomcat9 start
========================================
find / -name webapps

copy the path /var/lib/tomcat9/webapps

we need this path in appspec file at destination field.


===============================================
installing codedeploy agent:
reference AWS documentation -
https://docs.aws.amazon.com/codedeploy/latest/userguide/codedeploy-agent-
operations-install-linux.html

sudo yum update -y


sudo yum install ruby -y
sudo yum install wget -y
cd /home/ec2-user
wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/install

[wget https://bucket-name.s3.region-identifier.amazonaws.com/latest/install
based on region we are working we need to change bucket-name and region-identifier]

chmod +x ./install
sudo ./install auto
sudo service codedeploy-agent start
sudo service codedeploy-agent status

You might also like