This document discusses scaling a Jenkins continuous integration (CI) infrastructure on AWS from a single virtual machine to using Kubernetes, Docker, and Terraform. The solution principles are immutable infrastructure, self-healing, and on-demand scaling. The technology stack includes AWS, Terraform for AWS automation, Docker for tool configuration, and Kubernetes with Helm for container orchestration and Jenkins. Job definitions are put in version control and reused. Kubernetes secrets and Git-crypt are used for credentials provisioning. Artifacts are stored in S3. Multiple Jenkins masters are deployed in separate namespaces with shared node pools to allow team-specific builds at scale.