Skip to content

gogaille/setup-terraform

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Setup terraform

Setup terraform by:

  1. Downloading required version if needed
  2. Initializing it

Inputs

terraform-version

Required Terraform version. Default "0.14.0".

workspace-key-prefix

Required Path to the state file inside the S3 Bucket. Default "preproduction".

working-directory

Required Working directory for terraform initialization. Default ".".

Example usage

- uses: gogaille/setup-terraform
  env:
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  with:
    terraform-version: '0.14.0'
    workspace-key-prefix: 'preproduction'
    working-directory: 'infrastructure'