Running Terraform in automation
Common techniques for running Terraform in continuous delivery pipelines.
Use case
Automate infrastructure deployments through existing CI/CD workflows.
Challenge
In the cloud, organizations have the challenge of maintaining their existing resources, private clouds, and datacenters while simultaneously developing new applications and services that leverage the public cloud’s benefits. Many enterprises soon discover each cloud provider operates differently and they must choose among a vast array of workflows and processes to consume.
Solution
Terraform Cloud can be fully operated via API, CLI, and UI, which allows organizations to easily integrate it into their existing CI/CD pipelines, IT service management interfaces, and version control system processes. This level of integration with existing workflows minimizes process changes, streamlines the process of getting up and running, and ensures consistency throughout.
Common techniques for running Terraform in continuous delivery pipelines.
Automate infrastructure deployments with CI/CD using Terraform Cloud and GitHub Actions.
Create Terraform infrastructure in a CircleCI pipeline and learn automation best practices.
In the VCS workflow, every workspace is associated with a specific branch of a VCS repo of Terraform configurations.
The CLI-driven run workflow uses Terraform's standard CLI tools to execute runs in Terraform Cloud.
The API-driven run workflow is more flexible but requires you to create some tooling.
What is the optimal workflow process for Terraform in a large, multi-team enterprise? Watch this whiteboard video by Terraform co-creator and HashiCorp Co-Founder and CTO Armon Dadgar to find out about the high-scale Terraform best practices.