jdamata / terraform-provider-sonarqube

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

Support SonarCloud with organization #256

Open ajax-mykhailo-oleksiuk opened 5 months ago

ajax-mykhailo-oleksiuk commented 5 months ago

Hi there,

I'm not able to create resource in SonarCloud with enabled organization.

According to SonarCloud API organization parameter is a required - https://sonarcloud.io/web_api/api/user_groups/create?deprecated=false&section=params

But I don't see its support - https://github.com/jdamata/terraform-provider-sonarqube/blob/694763e0d4410e460e9e01cc4eea616df27d1e20/sonarqube/resource_sonarqube_group.go#L64

Affected Resource(s)

Please list the resources as a list, for example:

Expected Behavior

Support organizations.

Actual Behavior

│ Error: error creating Sonarqube group: API returned an error: The 'organization' parameter is missing
│ 
│   with sonarqube_group.android_developers,
│   on main.tf line 1, in resource "sonarqube_group" "android_developers":
│    1: resource "sonarqube_group" "android_developers" {
│