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

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

Open
grodriguezl opened this issue Jul 9, 2024 · 2 comments
Open

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

grodriguezl opened this issue Jul 9, 2024 · 2 comments

Comments

@grodriguezl
Copy link

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 grodriguezl added the bug label Jul 9, 2024
@julienduchesne
Copy link
Member

11.2 tells me that this isn't Amazon Managed Grafana, so this isn't exactly a bug, it's just not supported yet. SNS support seems to be new in non-Amazon Grafana

@julienduchesne julienduchesne changed the title [Bug]: SNS contact point invalid topicArn [Feature] Support SNS contact points in non-Amazon Grafana Jul 9, 2024
@grodriguezl
Copy link
Author

It works well when using UI

@yuri-tceretian yuri-tceretian self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants