jdamata / terraform-provider-sonarqube

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

sonarqube_project The 'organization' parameter is missing #259

Closed KuiiMaldonado closed 1 month ago

KuiiMaldonado commented 1 month ago

Hi there,

Thank you for opening an issue.

Terraform Version

v1.8.3

Affected Resource(s)

Terraform Configuration Files

terraform {
  required_providers {
    sonarqube = {
      source  = "jdamata/sonarqube"
      version = "0.16.10"
    }
  }
}
provider "sonarqube" {
  token = var.token
  host  = "https://sonarcloud.io"
  installed_version = "10.4"
  installed_edition = "Developer"
}
resource "sonarqube_project" "main" {
    name       = "SonarQube"
    project    = "my_project"
    visibility = "private"
}

Expected Behavior

Create a SonarCloud project resource successfully

Actual Behavior

When running terraform apply to create a sonarqube_project resource I am getting the following error:

Error: API returned an error: The 'organization' parameter is missing
│ 
│   with sonarqube_project.main,
│   on sonarcloud.tf line 13, in resource "sonarqube_project" "main":
│   13: resource "sonarqube_project" "main" {

There is no organization parameter listed in the provider's documentation.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
freeranger commented 1 month ago

This is a duplicate of #256