I have defined an IBM Cloud Function action and am trying to bind an existing IoT service to it using CLI, as described in documentation:
ibmcloud fn service bind iotf-service myActionName
The task fails with the error:
error: Unable to query services of the target resource group 'some-id':
Get
https://resource-controller.ibm.com/v1/resource_instances?resource_group_id=some-id&resource_id=&resource_plan_id=
: dial tcp: lookup resource-controller.ibm.com on 8.8.4.4:53: no such host
which is in a way understandable, because, according to the IBM Cloud resource controller documentation, its endpoint hostname is in fact resource-controller.cloud.ibm.com
, not resource-controller.ibm.com
.
I made sure that my Cloud Functions plugin is of the latest version. Clearly its configuration has the resource controller URL wrong.
I failed to find any references to the resource controller in the CLI configuration files.
How can I tell the cloud functions plugin to use the correct resource controller URL?