Deploying CI/CD Infrastructure with Terraform and Packer
summary
Builds a production-ready pool of self-hosted runners on GCP using Terraform + Packer, Cloud Functions for scale-up/scale-down, and image baking to remove VM setup time; claims roughly a 5x raw VM cost saving versus GitHub-hosted runners (example $350 -> $70) and an efficiency target where idle time stays under four times job time. Deployed as modules plus packer images, runs 100+ private repos since November with daily health checks, monitoring and automated retries, and reports no major incidents.
AI-written summary · about
chapters (9)
- 0:00Introduction and motivation
- 6:09Why cloud infrastructure for CI/CD
- 11:01Terraform for infrastructure as code
- 14:19Optimizing scaling with Packer
- 16:26Beginner tips for Terraform
- 21:04Ensuring infrastructure stability
- 24:20Integrating Terraform and Packer
- 26:08Testing and open sourcing the project
- 27:59Conclusion and project resources
related talks
33mBuilding Automated Pipelines for Infrastructure Code with Terraform and Packer
22mTerraform Hybrid: Unifying Your Physical and Cloud Datacenters
39mAutomating Immutable Infrastructure With Packer & Terraform
27mAdvanced Multipurpose Infrastructure: A Self-Managed Cloud Environment with HashiCorp Terraform
47mImmutable Infrastructure GitHub + Terraform + Packer
35mGitlab Runners at Scale as a Service
23mFully SaaS-Based DevOps with Terraform Cloud and GitLab
49mBuild, provision & deploy in the Cloud with Packer, Ansible & Terraform
