confluentinc / terraform-provider-confluentcloud

Confluent Cloud Terraform Provider is deprecated in favor of Confluent Terraform Provider
https://registry.terraform.io/providers/confluentinc/confluentcloud/latest/docs
52 stars 23 forks source link

Service account data source by display name #42

Closed azsefi closed 2 years ago

azsefi commented 2 years ago

Current service account data source does not make it possible to provide display name and get the id as output. It is frequently needed to get service account id to use for example in a topic acl. Is it possible to add that feature?

linouk23 commented 2 years ago

Thanks for opening an issue @azsefi!

Unfortunately that is currently not supported (and most likely it won't be) since underlying API requires Service Account ID for a read request.

There's a way to call list operation and then find its resource ID but I'm not sure whether we want to support that use case.

I'd probably recommend either use service account data source by providing its ID or use service account resource.

linouk23 commented 2 years ago

@azsefi given the fact there's a similar request #46 we might be able to add it in the following release.

linouk23 commented 2 years ago

Check out our most recent release of the TF Provider for Confluent Cloud v0.5.0 where we fixed the issue!

cc @azsefi