I wanted to learn how to build a custom terraform provider. So I created a dummy provider that can create, update and delete empty files.
Clone repository:
$ git clone git@github.com:jackap/terraform-provider-tfsystem
Enter the provider directory and build the provider
$ cd terraform-provider-tfsystem
$ go build
Copy the generated binary inside your terraform project:
$ mkdir my-terraform-project
$ mv ../terraform-provider-tfsystem .terraform/plugins/<OS>/
provider "tfsystem"{}
resource "tfsystem_file" "foo" {
path = "./bar"
}