Skip to main content
QUICK REVIEW

[Paper Review] Terraform -- Automating Infrastructure as a Service

Michael Howard|arXiv (Cornell University)|May 21, 2022
Software System Performance and ReliabilityComputer Science9 citations
TL;DR

This paper presents Terraform as an Infrastructure as Code (IaC) tool that enables declarative, version-controlled provisioning of cloud and on-premise infrastructure through human-readable configuration files in the HashiCorp Configuration Language (HCL). By decoupling infrastructure definition from implementation via provider plugins, Terraform enables portable, idempotent, and auditable infrastructure management across multiple cloud providers, reducing manual errors and enabling DevOps best practices in infrastructure lifecycle management.

ABSTRACT

Developing a software service requires a strict software development life cycle and process. This process demands controlling all application code through source control management as well as a rigorous versioning and branching strategy. However, the platform and infrastructure also benefit from this rigor. Software services must be deployed to a target run time environment and provisioning that environment through manual user actions is tedious and error-prone. Provisioning manually also becomes prohibitive as the number of resources grow and spread globally over multiple regions. The answer is to apply the same rigor to provisioning the infrastructure as applied to developing the application software. Terraform provides a platform allowing infrastructure resources to be defined in code. This code not only allows the automation of the infrastructure provisioning but also allows for a strict development and review life cycle, same as the application software.

Motivation & Objective

  • To address the challenges of manual, error-prone infrastructure provisioning in cloud environments.
  • To apply software development best practices—such as version control, branching, and code review—to infrastructure management.
  • To enable portable, idempotent, and auditable infrastructure provisioning across multiple cloud providers.
  • To reduce vendor lock-in by abstracting infrastructure APIs through provider plugins.
  • To integrate infrastructure provisioning into broader DevOps and CI/CD workflows.

Proposed method

  • Defining infrastructure resources using declarative configuration files in the HashiCorp Configuration Language (HCL).
  • Using a three-stage workflow: write (author configuration), plan (generate execution plan), and apply (execute actions against infrastructure providers).
  • Leveraging provider plugins to translate HCL resource blocks into vendor-specific API calls for cloud platforms like AWS, Azure, and VMware.
  • Maintaining a state file (locally or remotely) to track current infrastructure and enable idempotent operations.
  • Supporting integration with high-level languages via the Cloud Development Kit (CDK) for multi-language infrastructure authoring.
  • Using a declarative model where the desired infrastructure state is specified, not the sequence of steps to achieve it.

Experimental results

Research questions

  • RQ1How can infrastructure provisioning be automated using code while maintaining portability across cloud providers?
  • RQ2What are the benefits of applying software development lifecycle practices—such as version control and code review—to infrastructure management?
  • RQ3How does a declarative configuration language improve the reliability and maintainability of infrastructure provisioning?
  • RQ4To what extent can Terraform reduce vendor lock-in and improve infrastructure portability?
  • RQ5How does Terraform’s workflow compare to competing tools like AWS CloudFormation and OpenStack Heat in terms of multi-cloud support and extensibility?

Key findings

  • Terraform enables infrastructure provisioning through declarative configuration files in HCL, allowing for version control, peer review, and automated testing of infrastructure code.
  • The three-stage workflow—write, plan, apply—enables safe, predictable, and auditable infrastructure changes by decoupling configuration definition from execution.
  • Provider plugins abstract differences between cloud providers, enabling consistent infrastructure management across AWS, Azure, VMware, and other platforms.
  • The state file ensures idempotency by tracking the current infrastructure state and preventing unintended changes during updates.
  • Terraform’s integration with the Cloud Development Kit (CDK) allows developers to define infrastructure using five major high-level programming languages, improving developer productivity.
  • Unlike AWS CloudFormation or OpenStack Heat, Terraform supports multi-cloud and hybrid environments, reducing dependency on a single cloud provider’s ecosystem.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.