A suite of GitHub Actions for automating Terraform and OpenTofu workflows, including plan, apply, validate, and drift detection.
Terraform GitHub Actions is a suite of reusable GitHub Actions for automating Terraform and OpenTofu operations within CI/CD workflows. It provides actions for common tasks like planning, applying, validating, formatting, and checking for infrastructure drift, enabling teams to manage Infrastructure as Code (IaC) with GitOps practices directly on GitHub.
DevOps engineers, platform teams, and developers who use Terraform or OpenTofu for infrastructure management and want to automate their IaC workflows within GitHub Actions.
It offers a comprehensive, integrated set of actions specifically designed for Terraform/OpenTofu, simplifying the creation of safe, reviewable, and automated infrastructure pipelines without needing to build custom scripting from scratch.
GitHub actions for Terraform and OpenTofu
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers a wide range of actions for planning, applying, validating, formatting, drift detection, and workspace management, covering all key Terraform/OpenTofu operations as listed in the README.
Seamlessly integrates with GitHub pull requests for human review, enabling safe, auditable infrastructure changes with plan attachments and branch protection, as shown in the plan/apply example workflows.
Includes clear, copy-paste examples for common use cases like linting, drift detection, and ephemeral environments, reducing setup time and complexity.
Provides parallel actions for both Terraform and OpenTofu, giving teams flexibility to switch or standardize on either tool without rewriting workflows.
The actions are tightly coupled to GitHub Actions, making migration to other CI/CD platforms cumbersome and requiring full workflow rewrites.
Setting up multiple workflow files (e.g., plan.yaml, apply.yaml) can be verbose and error-prone, especially for complex multi-environment pipelines.
Only supports Terraform and OpenTofu, excluding other popular IaC tools like Pulumi or AWS CloudFormation, which may fragment automation efforts in mixed environments.