In order to simulate values that support Boolean values that can also be unset, the provider currently uses TypeNullableBool which is implemented as a TypeString with special validation and parsing rules to restrict to boolean values.
The parsing rules for TypeNullableBool currently allow 0 and 1 as valid values, matching behaviour of very old versions of Terraform. Only allow the values "", false, and true.
Note: The ideal solution is to update the resources to use terraform-plugin-framework instead of terraform-plugin-sdk/v2. terraform-plugin-framework allows typed nullable values.
The previous parsing behaviour was deprecated in #29378.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
In order to simulate values that support Boolean values that can also be unset, the provider currently uses
TypeNullableBool
which is implemented as aTypeString
with special validation and parsing rules to restrict to boolean values.The parsing rules for
TypeNullableBool
currently allow0
and1
as valid values, matching behaviour of very old versions of Terraform. Only allow the values""
,false
, andtrue
.Note: The ideal solution is to update the resources to use
terraform-plugin-framework
instead ofterraform-plugin-sdk/v2
.terraform-plugin-framework
allows typed nullable values.The previous parsing behaviour was deprecated in #29378.
Affected Resource(s) and/or Data Source(s)
No response
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None