jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

datasource "sonarqube_permission_template" #148

Closed eugeis closed 10 months ago

eugeis commented 1 year ago

Hi,

thank you for your great provider!

It would be great to hava datasources by name for:

like

datasource "sonarqube_permission_template" example { name = }

then I could use it by 'sonarqube_permissions' for template_id

or

resource "sonarqube_permissions" example { ... template = (not only template_id) }

Thank You Eugen

jdamata commented 1 year ago

Are you creating the template via terraform? I think you would be able to access the output of the template resource to get its ID or name. Otherwise yah a data resource for this sounds good to me. Did you want to work on this? Data resources are pretty low code and easy IE: https://github.com/jdamata/terraform-provider-sonarqube/pull/169

jdamata commented 10 months ago

@eugeis did that answer your question? If not please reopen the issue.