How to Configure Jenkins in EC2 – AWS in Latest AWS Wizards?
Pre-requisites: AWS
Jenkins configuration in EC2 instance on amazon web service platform all steps in details which is help to the user to easily set up your Jenkins tools on EC2 instance for the continuous integration and continuous development. Nowadays Jenkins become a more popular tool as compared to others and it is open source. It is free of cost and it is lightweight. Jenkins using the 8080 port. Jenkins code is available for everyone to contribute and add more features to this tool. It has a strong community and it has a number of plugins to do any type of work related to continuous integration and continuous development.
Steps to Configure the Jenkins in EC2 – AWS:
Step 1: Open the AWS console. Click on the EC2 Service.
Step 2: Click on the Launch Instance button
Step 3: Type the Instance name – Ubuntu. Select the AMI – Ubuntu
Step 4: Select the Instance type – t2.micro.Create or choose the existing Key pair – linux1
Step 5: Create the security group or choose the existing security group. Open the Port.
- 8080 – Jenkins
- 80 – HTTP
- 43 – HTTP
Step 6: Click on the Launch Instance Button
Step 7: Type the command for Root access
sudo su
Step 8: Update the Instance
apt-get update -y
Step 9: Install the JDK
apt install openjdk-11-jre
Step 10: Check the version
java -version
Step 11: Download plugins
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io.key | sudo tee \ /usr/share/keyrings/jenkins-keyring.asc > /dev/null
Step 12: Install the plugins
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null
Step 13: Update the Instance again
apt-get update -y
Step 14: Install the Jenkins Tool
sudo apt install jenkins -y
Step 15: Check the Jenkins status
sudo systemctl status Jenkins
Step 16: Open the Browser and type the “HTTP//<instance-ip>:8080”.Copy the text from your screen “/var/lib/jenkins/secrets/initialAdminPassword”.
Step 17: Paste into the cmd shell after that you will get the code
Step 18: Then open the browser again and paste it into the Jenkins “Administrator password”
Step 19: Click on the Install suggested plugins
Step 20: Now Jenkins is ready you can use it as per your use. Click on the New item to create the job
Jenkins is ready you can use it and download your required own plugins. Jenkins acts like a framework because it has more plugins and user can also create their plugins. Do not forget to open port 8080 because Jenkins using port 8080 without opening the port Jenkins can not run.
Last Updated :
28 Mar, 2023
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...