@microscopic-afternoon-22702 you can try my Cookiecutter template if you like. It configures the provider code according to the used Terraform SDK. Regardless if the provider uses v1, v2 SDK or the new Terraform Plugin Framework.
https://github.com/tmeckel/pulumi-tf-provider-cookiecutter