From 2d34b95e754a0e941409ab28dae226d8c821a4e4 Mon Sep 17 00:00:00 2001 From: Link512 Date: Thu, 24 Sep 2020 15:38:51 +0200 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index a3f96f3..134d901 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,26 @@ it is recommended to go read how it works before using this provider. ### Installation + Build the provider and put it in Terraform's third-party providers directory in `~/.terraform.d/plugins`: +#### Terraform <0.12 + ```bash go get github.com/FindHotel/terraform-provider-sql mkdir -p ~/.terraform.d/plugins go build -o ~/.terraform.d/plugins/terraform-provider-sql github.com/FindHotel/terraform-provider-sql ``` +#### Terraform >0.13 + + +```bash +go get github.com/FindHotel/terraform-provider-sql +mkdir -p ~/.terraform.d/plugins +go build -o ~/.terraform.d/plugins///linux_amd64/terraform-provider-sql github.com/FindHotel/terraform-provider-sql +``` + I recommend using [Go modules](https://github.com/golang/go/wiki/Modules) to ensure using the same version in development and production.