C.K.B.

Version 0.0.9

Czaku`s Knowladge Base

Terraform

Steps to compile and use the local provider:

export GOPATH="/Users/mmaciejc/git/Official/new-provider/latest"

git clone https://github.com/netascode/terraform-provider-fmc   

cd terraform-provider-fmc

go install

The bin file is compiled in $GOPATH so one folder up in above example - bin folder

cd ..
latest % ls -la
total 8
drwxr-xr-x   6 mmaciejc  staff  192 Jun 13 12:02 .
drwxr-xr-x   8 mmaciejc  staff  256 Jun 13 12:03 ..
-rw-r--r--   1 mmaciejc  staff  184 Jun 13 14:17 README.md
drwxr-xr-x   3 mmaciejc  staff   96 Jun 13 12:02 bin
drwxr-xr-x   4 mmaciejc  staff  128 Jun 13 12:02 pkg
drwxr-xr-x  24 mmaciejc  staff  768 Jun 13 12:02 terraform-provider-fmc

copy terraform-provider-fmc to folders (make a structure):

├── bin
│   └── registry.terraform.io
│       └── netascode
│           └── fmc
│               └── 0.0.9999
│                   └── darwin_arm64
│                       └── terraform-provider-fmc

Use provider: usualy in main.tf file:

terraform {
  required_providers {
    fmc = {
      source = "netascode/fmc"
    }
  }
}

Run terraform init with -plugin-dir option:

 terraform init -plugin-dir="bin"

Autogenerate README:

Pre-commit run -a
Last updated on 13 Jun 2024
Published on 13 Jun 2024
 Edit on GitHub