diff --git a/Makefile b/Makefile index 0c62439..fa35f84 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ -provider_directory=~/.terraform.d/plugins/terraform.local/balhau/receita/1.0.0/darwin_amd64/ +arch?=darwin_amd64 +provider_directory=~/.terraform.d/plugins/terraform.local/balhau/receita/1.0.0/$(arch)/ .PHONY: help help: ## Show this help. diff --git a/README.md b/README.md index 9cca1a4..4e19a34 100644 --- a/README.md +++ b/README.md @@ -69,3 +69,11 @@ install-provider: Install provider in the terraform plugin directory run-backend: Start the backend web server ``` + +#### Note + +By default the step `make install-provider` will install the provider assuming a darwin (macos). If you want this to be installed in a different environment you would need to override the parameter `arch`. As an example for linux amd64 would be something like + +```sh +make arch=linux_amd64 install-provider +```