From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale

Deploy a Jenkins server

To get the most out of this course, the first thing you'll need to do is deploy an internet-accessible Jenkins server. I'll be using Amazon Web Services and invite you to follow along. I'm logged into my AWS account and I'm viewing the CloudFormation homepage. From here, I'll select Create Stack. I'll select Upload a Template File and then Choose File. The exercise files have a CloudFormation template that deploys a Jenkins server, so I'll select Now, I'll select Next and enter a name for the stack. I'll keep the default instance size and select Next. On the Stack Options screen, I'll keep everything as the default and scroll to the bottom. I'll acknowledge that AWS CloudFormation might create IAM resources and then I'll select Next. On the Review screen, I'll just scroll to the bottom and select Submit. Now I'll wait for the deployment to complete. It should take about 5 minutes for the deployment to finish. Ok, the CloudFormation stack deployed successfully, so I'll select the Outputs tab. The outputs provide details for connecting to the Jenkins server. First is the command that we'll need to run to get the initial admin password, so I'll copy that. Next is the Jenkins URL which we'll use to connect to the Jenkins server. I'll open that in a new tab. The next link opens a terminal on the server where Jenkins is running. I'll open that in a new tab as well. In the terminal I'll paste in the command for the initial admin password. And I'll copy the password from here. In the Jenkins tab I'll paste in the password and select continue. I'll select Install Selected Plugins and wait for the installation to complete. After the plugins are installed, I'll create the first admin user. I'll give myself a username and password, and then enter my full name and e-mail address. I don't need to make any changes on the Instance Configuration screen, so I'll select Save and Finish. Now I can start using Jenkins. Once you have your internet accessible Jenkins server up and running, you're ready to move on to the next lesson and start working with Jenkins pipelines.

Contents