Running Jenkins on AWS
2h 8mIntermediate2021-05-05
Authors

Michael Jenkins
Senior Systems Engineer
Course details
Learn how to create and move a master instance of Jenkins to the cloud-based servers of AWS (Amazon Web Services). In this course, instructor Michael Jenkins covers steps for setting up Jenkins, creating a build environment, connecting with webhooks, using a deployment service, and shutting down AWS resources. First, Michael shows you how to create a master instance of Jenkins, including how to configure a security group, a NGINX reverse proxy, and your Jenkins master instance. Next, he steps through creating a build environment and connect the Jenkins master server to the build server. Michael explains what a webhook is and how you can create and test one. He goes over how to deploy using Elastic Beanstalk. Finally, Michael discusses how to stop or remove AWS resources.
Skills covered
JenkinsDevOps ToolsAdvancedDevOpsCloud ServicesCloud PlatformsCloud ComputingOpen Source
Concepts
0. Introduction
- 01 - Running Jenkins on AWS
- 02 - What you should know
- 03 - What's new in this update
1. Set Up Jenkins
- 04 - Create a security group
- 05 - Create a key pair
- 06 - Create the Jenkins EC2 instance
- 07 - Install Java, Jenkins, NGINX
- 08 - Configure NGINX
- 09 - Configure Jenkins
- 10 - Challenge - Set up a Jenkins master server
- 11 - Solution - Set up a Jenkins master server
2. Create a Build Environment
- 12 - Plan the build environment
- 13 - Create an IAM role for the build server
- 14 - Create a security group and key pair for the build server
- 15 - Create the build server
- 16 - Connect the Jenkins master to the build server
- 17 - Challenge - Set up a build server
- 18 - Solution - Set up a build server
3. Connect Jenkins with Webhooks
- 19 - Plan the CI CD pipeline
- 20 - What's a webhook
- 21 - Create and test a webhook
- 22 - Challenge - Connect Jenkins to GitHub
- 23 - Solution - Connect Jenkins to GitHub
4. Deployment to Elastic Beanstalk
- 24 - Create an Elastic Beanstalk application
- 25 - Download the application code
- 26 - Create a GitHub repository for the application code
- 27 - Create a freestyle job to deploy code from GitHub, part 1
- 28 - Create a freestyle job to deploy code from GitHub, part 2
- 29 - Deploy to Elastic Beanstalk from GitHub
- 30 - Challenge - Deploy to Elastic Beanstalk from GitHub
- 31 - Solution - Deploy to Elastic Beanstalk from GitHub
5. Shutting Down AWS Resources
- 32 - Stop or remove AWS resources
- 33 - Challenge - Decommission your Jenkins servers
- 34 - Solution - Decommission your Jenkins servers
Conclusion
- 35 - Next steps