resource "sonarqube_project" "main_project" {
name = var.name
project = var.project_key
visibility = var.visibility
setting {
key = "sonar.demo"
value = "sonarqube@example.org"
}
}
data "sonarqube_qualityprofile" "main" {
name = "db2c015b-5bd7-470b-aad5-76935393c45d"
}
resource "sonarqube_qualityprofile_project_association" "main" {
quality_profile = data.sonarqube_qualityprofile.main.name
project = sonarqube_project.main_project.project
language = data.sonarqube_qualityprofile.main
}
Steps to Reproduce
When apply this code data.sonarqube_qualityprofile.main is not an attribute. It making plugin crashed and can't do anything then. I have to remove statefile to fix this problem.
Terraform Version
Terraform v1.8.0
Code
Steps to Reproduce
When apply this code data.sonarqube_qualityprofile.main is not an attribute. It making plugin crashed and can't do anything then. I have to remove statefile to fix this problem.