This will hopefully be a start to a terraform provider for VMware Tanzu Service Mesh.
This is in a pre-alpha state. DO NOT USE IN PRODUCTION, unless you are ready to fork and maintain this code yourself.
Run the following command to build the provider
$ go build -o terraform-provider-tsm
$ go install github.com/goreleaser/goreleaser@latest
$ make release
First, build and install the provider.
$ make install
Then, navigate to the examples
directory.
$ cd examples
Run the following command to initialize the workspace and apply the sample configuration.
$ terraform init -plugin-dir=~/.terraform.d
$ terraform init && terraform apply
In vscode, you can right click and choose "Go: Test Function At Cursor" or run the tests manually.
go test terraform-provider-tsm/plugin/provider -v
git tag v0.0.80; git push origin v0.0.80 --force
export TF_LOG=JSON
export TF_LOG_PATH=tflog.json
jq -s '.' tflog.json > tflog.array.json
cat tflog.array.json | jq '.[] | select(.["@module"] !="provider.terraform-provider-azurerm_v2.66.0_x5" and .["@level"] =="trace")' > tflog.minus.azurerm.json