/terraform-provider-tfsystem

Dummy Terraform provider that manages empty files

Primary LanguageGo

Dummy Terraform Provider

Motivation

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.

Requirements

Building The Provider

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>/

Sample configuration file

provider "tfsystem"{}

resource "tfsystem_file" "foo" {
    path = "./bar"
}