You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- End Available Resources and Data Sources [operations] -->
62
+
<!-- Start SDK Example Usage [usage] -->
63
+
## SDK Example Usage
66
64
67
-
<!-- Start Testing the provider locally [usage] -->
68
-
## Testing the provider locally
69
-
70
-
#### Local Provider
65
+
### Testing the provider locally
71
66
72
67
Should you want to validate a change locally, the `--debug` flag allows you to execute the provider against a terraform instance locally.
73
68
74
69
This also allows for debuggers (e.g. delve) to be attached to the provider.
75
70
71
+
### Example
72
+
76
73
```sh
77
74
go run main.go --debug
78
75
# Copy the TF_REATTACH_PROVIDERS env var
@@ -81,30 +78,7 @@ cd examples/your-example
81
78
TF_REATTACH_PROVIDERS=... terraform init
82
79
TF_REATTACH_PROVIDERS=... terraform apply
83
80
```
84
-
85
-
#### Compiled Provider
86
-
87
-
Terraform allows you to use local provider builds by setting a `dev_overrides` block in a configuration file called `.terraformrc`. This block overrides all other configured installation methods.
88
-
89
-
1. Execute `go build` to construct a binary called `terraform-provider-epilot-custom-variable`
90
-
2. Ensure that the `.terraformrc` file is configured with a `dev_overrides` section such that your local copy of terraform can see the provider binary
91
-
92
-
Terraform searches for the `.terraformrc` file in your home directory and applies any configuration settings you set.
0 commit comments