-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Arguments must not be quoted #70
Comments
The example currently in the docs is using an old Terraform syntax which is no longer valid. Feel free to submit a PR to update the docs to the current syntax (we have another open issue for a similar problem). |
I checked the |
This should be fixed when a release of the provided is cut (see #97). |
Documentation for Feel free to reopen this issue if your problem continues. |
This issue was originally opened by @ashishsarkar as hashicorp/terraform#22881. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
$ terraform plan
Error: Argument names must not be quoted...
Crash Output
Expected Behavior
Actual Behavior
Steps to Reproduce
provider "grafana" {
url = "http://:3000"
auth = "admin:admin"
}
resource "grafana_alert_notification" "email_someteam" {
name = "Email that team"
type = "email"
is_default = false
settings {
"addresses" = "foo@example.net;bar@example.net"
"uploadImage" = "false"
}
}
$ terraform init
$ terraform apply
Additional Context
I am using Terraform v0.12.7, and I am not sure, which version is this docs updated for. I would request you to kindly update the Grafana_Alert docs [https://www.terraform.io/docs/providers/grafana/r/alert_notification.html] with the below provided. I have tested it out and its working seamlessly.
resource "grafana_alert_notification" "email_notification" {
name = "email_notification"
type = "email"
is_default = false
settings = {
addresses = "xyz@mail.com;abc@mail.com"
uploadImage = "false"
}
}
References
Idea from GitHub hashicorp/terraform#22095
It gave me idea to figure it out regarding the quotes, part which really helped me to rectify this.
The text was updated successfully, but these errors were encountered: