Closed pauljegouic closed 4 years ago
The KP client initialized in the terraform provider is using the default url: https://github.com/IBM-Cloud/terraform-provider-ibm/blob/db7d9126e40ae83ef53d249b8100bd576dbbe8d1/ibm/config.go#L476
In the KP go client the the default url is hardcoded to only use us-south: https://github.com/IBM/keyprotect-go-client/blob/5963b2526fe152b142d805b2c43ac2db84a95be9/kp.go#L39
The fix could be a region parameter that can be passed into the key protect resource and the default url can be overwritten
Event data is not working properly, got the same error.
Can you please try with latest provider releases today https://github.com/IBM-Cloud/terraform-provider-ibm/releases/tag/v1.2.0
provider "ibm"{
region = "eu-de"
}
resource "ibm_kp_key" "test" {
-----
}
Resolved. Thank you.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
From example documentation, with 'eu-de' region:
Expected Behavior
Key provisionned in related KeyProtect instance
Actual Behavior
Error
Same happens in eu-gb
Steps to Reproduce
With provided tf template