A GitHub Action to install and configure Terraform CLI in your workflows, enabling automated infrastructure management.
Hashicorp/setup-terraform is a GitHub Action that installs and configures the Terraform CLI within GitHub Actions workflows. It solves the problem of manually setting up Terraform in CI/CD pipelines by automating installation, credential management, and command output handling. This enables developers to run Terraform commands like `init`, `plan`, and `apply` directly in their workflows for infrastructure automation.
DevOps engineers, platform teams, and developers who use Terraform for infrastructure-as-code and want to automate their workflows using GitHub Actions. It's particularly useful for teams managing cloud infrastructure with CI/CD pipelines.
Developers choose this action because it's officially maintained by HashiCorp, ensuring reliability and compatibility with Terraform updates. It simplifies complex setup tasks, provides fine-grained control over Terraform command outputs, and integrates seamlessly with HCP Terraform and Terraform Enterprise for enterprise-grade workflows.
Sets up Terraform CLI in your GitHub Actions workflow.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Maintained by HashiCorp, ensuring reliable updates and seamless integration with HCP Terraform and Terraform Enterprise, as highlighted in the value proposition.
Handles Terraform installation, version management, and PATH configuration automatically, simplifying workflow steps compared to manual scripting.
Installs a wrapper script that exposes Terraform command STDOUT, STDERR, and exit codes as workflow outputs, enabling detailed logging and conditional logic.
Runs on Ubuntu, Windows, and macOS GitHub Actions runners, with support for self-hosted runners where NodeJS is pre-installed.
HashiCorp explicitly labels it as experimental, disclaims liability, and states it's not for production use, posing risks for critical workflows.
The wrapper script can cause workflow failures when Terraform outputs exceed GitHub's comment character limit, requiring manual workarounds like using GITHUB_STEP_SUMMARY.
Requires NodeJS to be pre-installed on self-hosted runners, adding setup complexity and potential compatibility issues beyond Terraform itself.