Open eiri opened 4 months ago
According code block that should've work is here https://github.com/IBM-Cloud/terraform-provider-ibm/blob/master/ibm/service/resourcecontroller/resource_ibm_resource_instance.go#L495
There are a section that casts string "true" and "false" to boolean, so that might've been in play instead, depends on how serialized parameters
are passed to controller.
Another question to investigate is Cloudant controller accepts false
as parameter for onetime_credentials
on creation of resource, as that would expect to be a default, or is it an upgrade parameter.
While on this topic it would be beneficial to investigate if parameter parameters_json
works in this case, e.g.
parameters_json = jsonencode(
{
"onetime_credentials" : false
}
)
or
parameters_json = <<PARAMETERS_JSON
{
"onetime_credentials" : false
}
PARAMETERS_JSON
and update an example section for the resource accordingly.
Community Note
Terraform CLI and Terraform IBM Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
Created resource should have parameter
onetime_credentials
set tofalse
Actual Behavior
Created resource should have parameter
onetime_credentials
equaltrue
Steps to Reproduce
terraform apply
Important Factoids
References
0000