-
Notifications
You must be signed in to change notification settings - Fork 17
Home
nukosuke edited this page Apr 22, 2022
·
14 revisions
Looking for user document? It's available on Terraform registry.
- Setup direnv and
cd
intoexamples/
directory. - Copy
.env.sample
as.env
and write your Zendesk credentials for authentication. - Build provider code.
# binary will be located into ./build/terraform-provider-zendesk_vx.y.z $ make install
- Create
.tf
file to test.# base provider config for development $ cp provider/dev_provider.tf main.tf # edit resources $ vim main.tf
- Exec
terraform
commands.$ TF_CLI_CONFIG_FILE=dev.tfrc terraform plan $ TF_CLI_CONFIG_FILE=dev.tfrc terraform apply
- Don't forget to add
TF_CLI_CONFIG_FILE=dev.tfrc
to override provider search path with./build
. - If you always set the environment variable, add it to
.env
.
- Don't forget to add
go generate ./...
This command executes tfplugindocs
and renders markdown files from schema Description
and resources in examples/
.