Closed arthur-leclerc closed 10 months ago
hey @arthur-leclerc - thanks for raising this issue. when creating the provider initialization logic + validations, we had Cloud in mind when checking for the presence of an API Key; so we did not initially consider your use case of using a separate auth provider for a self-managed Server deployment.
That being said, as you've identified - we're simply passing this API Key to an http client, and we're open to lifting this validation check out of the provider to support your use case
hey @arthur-leclerc - i just pushed a fix for this and cut a release to the provider registry. when it finishes publishing, would you give this a try with v0.1.1
https://github.com/PrefectHQ/terraform-provider-prefect/releases/tag/v0.1.1
It works perfectly, thank you!
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Be able to create a work pool on Prefect Server.
Actual Behavior
Since version
v0.0.0-alpha8
, it is no longer possible to create a work pool when we point the provider to a running Prefect Server.We were particularly happy in my company to see the creation of a Terraform provider compatible with Prefect Server, allowing us to easily configure Prefect, but I am now wondering if you have the objective of continuing to support different targets.
Are these things something you don't want to support with this Terraform provider? Is it primarily designed with the Cloud version of Prefect as a target?
Additionally, as you can see in the TF sample code, we were pleased to see that it was possible to set a Bearer token via the
api_key
variable in the provider block allowing us to take advantage of the authentication in place on our infrastructure thanks to Authentik, resolving the authentification problem, Prefect not having one.Is this also something you have in mind to allow the provider to be configured with custom authentication systems like
Basic/Bearer
token, or is it just some kind of allowed hack with the current implementation?Steps to Reproduce
terraform apply
Important Factoids
References
0000