From 085d1377de71c702399a9fd8d065c40e9e27c04c Mon Sep 17 00:00:00 2001 From: Balhau Date: Sat, 23 Dec 2023 11:10:59 +0000 Subject: [PATCH] Adding support for terraform in other archs --- Makefile | 3 ++- README.md | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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 +```