Skip to content

Latest commit

 

History

History
executable file
·
16 lines (13 loc) · 514 Bytes

USAGE.md

File metadata and controls

executable file
·
16 lines (13 loc) · 514 Bytes

Testing the provider locally

Should you want to validate a change locally, the --debug flag allows you to execute the provider against a terraform instance locally.

This also allows for debuggers (e.g. delve) to be attached to the provider.

go run main.go --debug
# Copy the TF_REATTACH_PROVIDERS env var
# In a new terminal
cd examples/your-example
TF_REATTACH_PROVIDERS=... terraform init
TF_REATTACH_PROVIDERS=... terraform apply