Closed ethanndickson closed 3 months ago
As a reference, you can check how JFrog artifactory provider handles this. They check for licenses during provider initialization and do not work without a valid license.
[!IMPORTANT] They are using SDKv2 and not the terraform plugin framework.
Currently, if a user sets an enterprise-only attribute, such as
allow_user_autostart
to false on acoderd_template
, on an AGPL deployment, the resource will be created ascoderd
does not return an error. However, when the provider goes to read the state of the resource, it will note a state mismatch (as the field is always true for AGPL deployments), and report a provider error. This is very much confusing for users. Ideally, we should return a validation error forbidding this during aplan
.