Running Jenkins on AWS: Deploying and Managing Jenkins on Cloud Infrastructure

Running Jenkins on AWS: Deploying and Managing Jenkins on Cloud Infrastructure

1h 8mIntermediate2025-07-29

Authors

Michael Jenkins

Michael Jenkins

Senior Systems Engineer

Course details

Learn how to create a Jenkins environment using the cloud-based servers of AWS. In this course, instructor Michael Jenkins covers steps for setting up Jenkins, creating a build environment, connecting to code repositories with webhooks, using a deployment service, and shutting down AWS resources. First, Michael shows you how to create a Jenkins controller instance, including how to configure a security group, an NGINX reverse proxy, and the Jenkins automation service. Next, he takes you through creating a build environment and connecting the Jenkins controller to the build server. Michael explains what a webhook is, demonstrates how to create and test one in GitHub, and shows how to use a webhook to trigger an automated deployment with AWS Lambda. Finally, Michael discusses how to stop or remove AWS resources.

Learning objectives
Deploy and configure Jenkins on AWS using best practices for security and reliability.
Integrate Jenkins with AWS services such as EC2, IAM, and AWS Lambda to streamline CI/CD workflows.
Implement security best practices for Jenkins on AWS, including credential management and IAM role configuration.

Skills covered

JenkinsDevOps ToolsAmazon Web Services (AWS)AmazonDevOpsOpen SourceOne-Off

Concepts

Introduction

  • CI CD supercharged - Jenkins meets AWS

Setting Up Jenkins

  • Architect the Jenkins environment on AWS
  • Create an IAM role
  • Create a security group
  • Create the Jenkins EC2 instance
  • Install Java, Jenkins, and NGINX
  • Configure NGINX
  • Configure Jenkins
  • Solution - Set up a Jenkins server

Create a Build Environment

  • Plan the build environment
  • Create an IAM role for the build server
  • Create a security group and key pair for the build server
  • Create the build server
  • Connect Jenkins to the build server
  • Solution - Set up a build server

Connect Jenkins with Webhooks

  • Plan the CI CD pipeline
  • What's a webhook
  • Create and test a webhook with GitHub
  • Solution - Connect Jenkins to GitHub
  • Create and test webhooks with other services

Deploy Code to AWS Lambda

  • Initialize the deployment target in AWS Lambda
  • Create a GitHub repository for the application code
  • Create a freestyle job to deploy code from GitHub, part 1
  • Create a freestyle job to deploy code from GitHub, part 2
  • Deploy to AWS Lambda from GitHub
  • Solution - Deploy to AWS Lambda from GitHub

Shut Down AWS Resources

  • Decomission AWS resources
  • Solution - Decommission AWS resources

Conclusion

  • Next steps
40,000 Toman