Relative Content

Tag Archive for goterraform

Parse HCL block into Golang map

I am implementing acceptance tests for a terraform provider, and I would like to use the same input variable to write my test plan and to assert that my resource is properly setup.

Terraform provider method Configure not getting called

I am developing a custom Terraform provider.
I have all of my custom logic for creating/reading/updating/deleting resources all done but I cannot get the provider to get configured.
I have cloned this repository as a base https://github.com/hashicorp/terraform-provider-scaffolding-framework/tree/main.
And if I debug the code in that repository and just add a line to the provider.go file at the Configure method of the hashicupsProvider type so that I get a breakpoint inside that method, the breakpoint never hits.
I have the exact same “skeleton” for my own provider so I do not think it is necessary to provide the whole source for that since it does not work even from the HashiCorp provided example.