Skip to content
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 #22881

Closed
ashishsarkar opened this issue Sep 23, 2019 · 3 comments
Closed

Error: Arguments must not be quoted #22881

ashishsarkar opened this issue Sep 23, 2019 · 3 comments

Comments

@ashishsarkar
Copy link

Terraform Version

Terraform v0.12.7

Terraform Configuration Files

resource "grafana_alert_notification" "email_notification" {
  name = "email_notification"
  type = "email"
  is_default = false

  settings = {
    addresses = "xyz@mail.com;abc@mail.com"
    uploadImage = "false"
  }
}

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 #22095
It gave me idea to figure it out regarding the quotes, part which really helped me to rectify this.

@ghost
Copy link

ghost commented Sep 23, 2019

This issue has been automatically migrated to terraform-providers/terraform-provider-grafana#70 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-grafana#70.

@ashishsarkar
Copy link
Author

Can you tell me how it could be the issue with the Provider(Grafana). As per your your Grafana Documentation, the "Example Usage" you have provided is completely wrong.

Terraform Example:(Terraform v0.12.7)

image

Correct Example(Please update in docs of Terraform Grafana Alert):

image

@ghost
Copy link

ghost commented Oct 24, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Oct 24, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants