From 1645936daa9d9b985412d1669f06081f1d686dcd Mon Sep 17 00:00:00 2001 From: saayamori <83622115+saayamori@users.noreply.github.com> Date: Wed, 24 Jul 2024 11:19:38 +1000 Subject: [PATCH] Update README to include more steps to set up local env (#85) --- 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