install-macos.sh 552 B

123456789101112131415161718
  1. #!/bin/bash
  2. echo 'installing brew packages'
  3. brew update
  4. brew tap liamg/tfsec
  5. brew install tfenv tflint terraform-docs pre-commit liamg/tfsec/tfsec coreutils
  6. brew upgrade tfenv tflint terraform-docs pre-commit liamg/tfsec/tfsec coreutils
  7. echo 'installing pre-commit hooks'
  8. pre-commit install
  9. echo 'setting pre-commit hooks to auto-install on clone in the future'
  10. git config --global init.templateDir ~/.git-template
  11. pre-commit init-templatedir ~/.git-template
  12. echo 'installing terraform with tfenv'
  13. tfenv install min-required
  14. tfenv use min-required