zitadel / terraform-provider-zitadel

Official Terraform provider for ZITADEL
https://zitadel.com
Apache License 2.0
21 stars 13 forks source link

Add ability to data sources to search by name #144

Closed mdarii closed 5 months ago

mdarii commented 6 months ago

Preflight Checklist

Describe your problem

It would be beneficial if Terraform provider data sources allowed the selection of resources by name. This capability could facilitate the transfer of data between multiple Terraform contexts. Currently, we rely on IDs, which are not known in advance.

Initial issue: https://github.com/zitadel/terraform-provider-zitadel/issues/47

Ideally, we would like to be able to look up any resource by name. However, there is a specific resource in the following list that is preventing us from refactoring our current Infrastructure as Code (IAC): zitadel_project zitadel_machine_user zitadel_application_api zitadel_application_oidc

Describe your ideal solution

Data sources can lookup a resource by name or id

Version

No response

Additional Context

No response