AWS Documentation

⌘K
  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS Jenkins on Amazon Linux 2023 by Classmethod

AWS Jenkins on Amazon Linux 2023 by Classmethod

AMI Document

This AMI provides a single node Jenkins server.

Overview

  • Amazon Linux 2023
  • Jenkins 2.452
  • OpenJDK 17
  • nginx 1.24

Web Server

We prepared SSL/TLS so you can access to top page using https://.

When we access Jenkins top page, you will receive certificate error like this image below. It is due to the fact that the setting for SSL/TLS on Web server is self-signed dummy certificate.

For simplicity, click on the Advanced button, and click “Proceed to {ip-address} (unsafe)” to access Jenkins. If you don’t see “Proceed to {ip-address} (unsafe)” on Chrome, just type in thisisunsafe anywhere on the window and the browser will let you visit the page.

Once you proceed, you will see Jenkins setup wizard as below.

Jenkins initial password

You can find Jenkins initial password from EC2 management console System Log.

You can also SSH into your instance and find the login credential using the following command.

$ cat /home/ec2-user/credentials
////////////////////credentials info////////////////////
--- Jenkins
----- User: admin
----- Password : 622766c97c21405c9ce5a54ccad3e695
////////////////////////////////////////////////////////

Jenkins setup wizard

Input initial password, "622766c97c21405c9ce5a54ccad3e695" in this case, and click “Continue”.

You will see plugin selection page as below.

For simplicity, click “Install suggested plugins”, and Jenkins will automatically install recommended plugins. This may take a few minutes.

Once plugin installation is done, setup wizard will ask you to create admin user. Specify your admin account detail, and click “Save and Continue”.

If you have setup specific domain and fixed IP address for Jenkins, you can setup Jenkins URL here. If not, you can proceed with default url. NOTES: This default address is AWS assigned automatically. AWS will release this public IP address when the instance is stopped or terminated.

Finally, Jenkins is ready, click “Start using Jenkins”.

If the page doesn’t automatically refresh after a minute, open https://{your-jenkins-address}/restart and click “Yes” to restart Jenkins. After Jenkins restart, you will see login page as below. Fill out admin account you have setup above and login.

For more details about Jenkins, please refer to Jenkins User Documentation

Reference

  1. Tutorial: Configure SSL/TLS on AL2023
  2. Amazon EC2 Instance IP Addressing
  3. Jenkins User Documentation
Tags ,

How can we help?