Closed PeterStolz closed 5 months ago
Hello @PeterStolz, this is a known issue from terraform and unfortunately it is not something that we can fix on the provider.
There are open issues raised to terraform regarding this, check https://github.com/hashicorp/terraform-plugin-framework/issues/805 and https://github.com/hashicorp/terraform/issues/33570
You can consider commenting on those issues to raise the priority to get it fixed in terraform.
I do not know how providers work in detail, but at some point you need to make an API request to STACKIT to create the cluster or check its state. Can you not validate it there? I know that it would be a runtime error now and won't surface in a plan, but in my opinion this workaround is definitely worth it for the enduser.
The problem is that the provider doesn't get those invalid attributes at all. Terraform doesn't parse them so we have no way of checking.
Again, because this is general Terraform behavior, it also doesn't make sense to document this issue in the provider, in my opinion. The users can and should always refer to the resources documentation for the supported attributes.
Okay, that is unfortunate. Thanks for clarifying
Hi, you can specify arbitrary attributes inside a node_pool definition:
This caused quite a bug hunt for me until I saw the missconfiguraiton, as this causes no error. Going forward it will save a lot of people time if we implement proper validation here.