When creating a provider using the terraform boiler plate, is there a way to handle an instance where the module path is different than the repo path?
l
limited-rainbow-51650
04/04/2023, 8:06 AM
For normal downloading of Go modules from github repos, the module path should map to the repo path, except versioning suffixes like
/v2
.
b
big-architect-71258
04/05/2023, 8:53 AM
@bored-activity-40468
Probably you'd like to give my Cookiecutter Template a chance to create the DME provider.
https://github.com/tmeckel/pulumi-tf-provider-cookiecutter
The template is smart enough to handle those typical deviations.
One nitty gritty detail: you need a type assertion, because the DME provider returns an Interface and not a pointer to the `schema.Provider`struct:
p := shimv1.NewProvider(dme.Provider().(*schema.Provider))