From 56979b97667e515ac87e3d1d24a0bd2f5ec71b0d Mon Sep 17 00:00:00 2001 From: samori Date: Wed, 24 Jul 2024 10:21:03 +1000 Subject: [PATCH] Update README to include more steps to set up local env --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0dc8dc..004e11e 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,31 @@ cd /path/terraform-provider-conformity go mod tidy go mod vendor ``` -#### 3. Create the Artifact: +#### 3. Update Makefile with your own values: +```makefile +# ... +VERSION=0.6 # Set a new version +OS_ARCH=darwin_amd64 # Update to value that matches with your OS +# ... +``` +#### 4. Create the Artifact: ```sh make install ``` -#### 4. Now, you can test terraform code: +#### 5. Go to your terraform project, and update `source` set in your terraform provider block: +```hcl +terraform { + required_providers { + conformity = { + version = "YOUR_VERSION" + + # Set path to match with values in HOSTNAME/NAMESPACE/NAME defined in the Makefile + source = "trendmicro.com/cloudone/conformity" + } + } +} +``` +#### 6. Now, you can test terraform code: ```sh cd example/path-to-main/ terraform init