Iterating on infrastructure with Terraform, Packer, and GitHub Actions
- Slides: speakerdeck.com/ksatirli/iterative-infrastructure
- Code: github.com/ksatirli/iterative-infrastructure
To use the code in this repository, you will need the following applications:
- HashiCorp Terraform
0.14.4
(or later) - HashiCorp Packer
1.6.6
(or later) - Azure CLI az
2.0.0
(or later)
Additionally, you will need a GitHub Personal Access Token.
The code in this repository is split out into a handful of distinct flows, each in their own directory:
terraform/azure
contains code for Terraform to set up an Azure Resource Group and generate a Packer variables definition filepacker
contains code for Packer to build a (very!) basic image for an Azure Linux Virtual Machineterraform/azure-compute
contains code for Terraform to start a Linux Virtual Machine with the Packer imageterraform/github
contains code for Terraform to set up a GitHub Organization's memberships and repository.github/workflows
contains GitHub Actions to ensure code quality for Packer and Terraform projects
Each directory contains its own README.md
with information relevant to the workflow.
While the authors of this repository take care to explain all workflows with the amount of detail required to execute them, the information here should not be considered exhaustive.
This section is a collection of links that will help you make the most of today's session.
- introduction to the Terraform Ecosystem: speakerdeck.com/ksatirli/intro-to-the-terraform-ecosystem
- CLI commands terraform.io/docs/commands/index.html
- variables and type constraints: terraform.io/docs/configuration/variables.html
- variable definition files: terraform.io/docs/configuration/variables.html
- information about Terraform State: terraform.io/docs/state/index.html
- in-depth guides on how to use Terraform: learn.hashicorp.com/terraform
- Terraform Code Quality: speakerdeck.com/ksatirli/code-quality-for-terraform
- CLI commands packer.io/docs/commands
- variables packer.io/docs/templates/user-variables
- in-depth guides on how to use Packer: learn.hashicorp.com/packer
- Packer GitHub Actions: github.com/operatehappy/packer-github-actions
This repository is maintained by Kerim Satirli and Taylor Dolezal.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
Test