Custom plugin created on article: Creating the first terraform custom provider
- Golang 1.13+ installed and configured.
- Terraform 0.14+ CLI installed locally
- NodeJS 10+
- Install the json-server to running a easily and fast server.
$ npm i -g json-server
- On project root create a db.json file to initialize the server, with the following content:
{ "users": [] }
- Run the server
$ json-server --watch db.json
- Run the following command to build the provider on folder terraform-provider-jsonserver
$ go build -o terraform-provider-jsonserver
- Run Makefile to install provider
$ make install
- On root folder run terraform with example configuration
$ terraform init && terraform plan