Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Please add an option to download/install terraform

Open
#96 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
shell, terraform
Domain
ci-cd

Research direction

The failure points to hooks/terraform-fmt.sh; start there and review how this hook is invoked on pre-commit.ci. Add the requested Terraform installation option and verify that terraform-fmt runs successfully when Terraform is absent, while preserving current behavior when it is already installed.

Written by the indexing model from the issue text.

Description

enhancement

Describe the solution you'd like
I would like to be able to use terraform-fmt on pre-commit.ci, the hosted CI pre-commit service, but unfortunately I cannot because terraform doesn't come pre-installed, and the hooks here do not install/bundle it.

Terraform fmt............................................................Failed
- hook id: terraform-fmt
- exit code: 127

/pc/clone/RKgVfIZxQCiSAX665qKF9Q/hooks/terraform-fmt.sh: line 15: terraform: command not found

It'd be nice if there was a way to say that you need terraform installed as part of the hook.

Describe alternatives you've considered
Not running terraform hooks on pre-commit.ci.

Dominant language
Shell
Stars
546
Forks
167
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/pre-commit

All issues in gruntwork-io/pre-commit

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.