Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Latest commit

 

History

History
 
 

setup-terraform

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

setup-terraform

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).

Usage

See action.yml.

Examples

Basic Usage

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

Manually specified versions

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

Skip Terragrunt

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