Open michalbogacz opened 3 years ago
@michalbogacz what was your work-around for this? Are schema registry api keys not yet supported?
@Matt-S6 I didn't found work-around
resource "confluentcloud_api_key" "schema_registry_api_key" {
logical_clusters = [
var.schema_registry_id
]
environment_id = var.environment_id
description = "Schema Registry API Key for domain ${var.domain}"
user_id = confluentcloud_service_account.service_account.id
depends_on = [confluentcloud_service_account.service_account]
}
This is what worked for me.
The exact same thing occurs when trying to create a KSQL cluster api key the standard way. I didn't expect it to work given that this provider supports no KSQL-related resources, but it would be helpful to have a more informative error on failure.
Unfortunately, the workaround above gave me the same error as before.
I tried to create API Key for Schema Registry using Service Account.
I expected similar result as doing
ccloud api-key create --service-account {sa-...} --resource {lsrc-..}
But after apply, I got error: