terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

[Feature] Support SNS contact points in non-Amazon Grafana

Open grodriguezl opened this issue 1 year ago • 2 comments

Terraform Version

1.6.6

Terraform Grafana Provider Version

3.3.0

Grafana Version

11.2.0

Affected Resource(s)

  • grafana_contact_point

Terraform Configuration Files

resource "grafana_contact_point" "my_contact_point" {
  name = "my_contact_point"

  sns {
    topic                   = "arn:aws:sns:us-east-2:123456789012:test-grafana"
    access_key              = "Test"
    secret_key              = "Test"
    body                    = "{{ range .Alerts}}{{ .Labels.alertname }}{{ end -}}"
    subject                 = "{{ range .Alerts}}{{ .Labels.alertname }}{{ end -}}"
    disable_resolve_message = false
  }
}

Expected Behavior

Contact point should be created

Actual Behavior

Error: [POST /v1/provisioning/contact-points][400] postContactpointsBadRequest {"message":"invalid object specification: failed to validate integration \"my_contact_point\" (UID ) of type \"sns\": must specify topicArn, targetArn, or phone number"}

It seems the translation from the filed topic to the actual API field is broken

Steps to Reproduce

terraform apply

Important Factoids

No response

References

No response

grodriguezl avatar Jul 09 '24 19:07 grodriguezl