Skip to content

Cache Terraform providers to improve workflow execution time

License

Notifications You must be signed in to change notification settings

terraform-cache/terraform-cache

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

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Cache

This action allows caching Terraform providers to improve workflow execution time.

LICENSE GitHub stars

Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. For more information, reference the GitHub Help Documentation for Creating a workflow file.

Cache Details

This action currently caches the following directories:

  • $HOME/.terraform.d/plugin-cache (Path where the providers will be installed)

Example workflow

- uses: actions/checkout@v3

- name: Setup Terraform
  uses: hashicorp/setup-terraform@v2
  with:
    terraform_version: 1.4.6

- uses: terraform-cache/terraform-cache@v1

- name: Init
  run: |
    terraform init

Contributing

Check out Contributing guide for ideas on contributing and setup steps for getting our repositories up.

License

Licensed under the MIT License.