Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 753 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 753 Bytes

Terraform Example

This is a Terraform setup running with this configuration:

  • State is stored in tfstate.dev
  • Plans and applies run in GitHub Actions
  • State is backed up to Backblaze B2

Local Preview

This setup includes a tool to run speculatives plans for local changes in GitHub Actions so that secrets can be used while planning. This setup is supposed to mimic speculative plans in Terraform Cloud.

Prerequisites:

  • ngrok Account
    • Put your auth token into the NGROK_AUTHTOKEN env var
  • GitHub CLI authenticated
  • Go installed (no binaries yet)

With that set you can run a speculative plan:

go run ./cmd/tf-preview-gh