This is a GitHub Action to set up Terraform and Terragrunt.
The action defaults to reading versions to download from .terraform-version and .terragrunt-version files in the
working directory (repository root).
See action.yml.
This example will set up terraform and terragrunt for use in subsequent steps.
The versions will be loaded from .terraform-version and .terragrunt-version.
on: push
jobs:
terragrunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extenda/actions/setup-terragrunt@v0This example will set up terraform and terragrunt with specified versions.
on: push
jobs:
terragrunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extenda/actions/setup-terragrunt@v0
with:
terragrunt-version: 0.23.3
terraform-version: 0.12.24To skip installation of Terragrunt, pass the skip-terragrunt input.
on: push
jobs:
terragrunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extenda/actions/setup-terragrunt@v0
with:
skip-terragrunt: true