Skip to content

Repository files navigation

Terraform Provider Git

Terraform provider for managing individual text files in Git repositories.

The provider uses the Terraform Plugin Framework and github.com/go-git/go-git/v6 for native Git operations.

Example

terraform {
  required_providers {
    git = {
      source = "change-engine/git"
    }
  }
}

provider "git" {
  author_name  = "Terraform"
  author_email = "terraform@example.com"
}

resource "git_file" "example" {
  repository_url = "https://github.com/example/repo.git"
  branch         = "main"
  path           = "managed/example.txt"
  content        = "Managed by Terraform\n"
}

Development

Run tests with:

CGO_ENABLED=0 GOCACHE=/tmp/go-cache go test ./...

About

Terraform provider for managing individual text files in Git repositories.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages