Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube 10.3 - how is SonarQube deployed: zip, Docker, Helm
Helm - what are you trying to achieve
Configure email settings via Terraform - what have you tried so far to achieve this
Configure via terraform
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
I’m trying to configure the various email settings shown in the UI under Administration > Configuration > General:
email.smtp_host.secured
email.smtp_port.secured
email.smtp_secure_connection.secured
email.smtp_username.secured
email.smtp_password.secured
email.from
email.prefix
email.fromName
Example of how I’m setting these using Terraform:
resource "sonarqube_setting" "email_smtp_host" {
key = "email.smtp_host.secured"
value = "smtp.sendgrid.net"
}
I’m using the jdamata/sonarqube v0.16 provider.
I get the following errors when trying to apply:
Error: resourceSonarqubeSettingsRead: Failed to find setting: email.smtp_host.secured
Error: resourceSonarqubeSettingsRead: Failed to find setting: email.smtp_port.secured
Error: resourceSonarqubeSettingsRead: Failed to find setting: email.smtp_secure_connection.secured
Error: resourceSonarqubeSettingsRead: Failed to find setting: email.smtp_username.secured