Last summer I wrote a piece discussing the hows and whys of using automation to manage cloud infrastructure. I took a high-level approach to the subject, and today I want to dive into how to practically apply this technique in a production environment. I’ll take a simple but flexible example case, using tools from the HashiCorp suite, including Packer and Terraform, to deploy and manage a single simple-case application stack from Jenkins.
This post assumes some basic knowledge of continuous integration, and an application stored in a git repository that has automated test and build jobs using Jenkins or something similar. To this existing basic workflow, we’ll add a simple infrastructure configuration directly into the repository.