Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Moving all the parameters from the provider to restapi_object #250

Open
marcosdiez opened this issue Dec 4, 2023 · 1 comment

Comments

@marcosdiez
Copy link

Since this provider has only one resource, it would be great if all the parameters were moved from the provider section to the restapi_object section.

That would be great in cases the provider is called within a module and the module is smart enough to get the secret and settings (uri) directly from the whatever secret store one uses.

Which means outside of the module zero settings whatsoever would be needed.

In order to keep backward compatibility, the parameters should be optional in the provider and in the resource, but the ones in the resource would have preference.

@Blefish
Copy link

Blefish commented Oct 31, 2024

Would love this! This way, some dynamic properties that are not available at plan time can be evaluated later on in the apply process.

For example, a usecase where URL is derived after bootstrap, which in turn calls restapi provider to perform some REST request.

My use case can be filled with https://registry.terraform.io/providers/magodo/restful/0.16.1 , where base_url is also required, but can be set to empty value, filling it on resource level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants