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@v1
- uses: extenda/actions/setup-terragrunt@v0
This example will set up terraform
and terragrunt
with specified versions.
on: push
jobs:
terragrunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: extenda/actions/setup-terragrunt@v0
with:
terragrunt-version: 0.23.3
terraform-version: 0.12.24
To skip installation of Terragrunt, pass the skip-terragrunt
input.
on: push
jobs:
terragrunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: extenda/actions/setup-terragrunt@v0
with:
skip-terragrunt: true