5 Discovering Jenkins as code with Terraform
This chapter covers
- Introducing infrastructure as code (IaC)
- Using HashiCorp Terraform, which enables IaC
- Deploying Jenkins in a secure private network
- Scaling Jenkins workers dynamically with AWS Auto Scaling
In the previous chapter, we used HashiCorp Packer to create custom Jenkins machine images; in this chapter, we will use those images (figure 5.1) to deploy the machines. To do that, we will write declarative definitions of the Jenkins infrastructure we want to exist and use an automation tool to deploy the resources on the given infrastructure-as-a service (IaaS) provider.
In the past, managing IT infrastructure was a hard job. System administrators had to manually manage and configure all ...
Get Pipeline as Code now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.