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
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
Terraform Version
1.6.6
Terraform Grafana Provider Version
3.3.0
Grafana Version
11.2.0
Affected Resource(s)
Terraform Configuration Files
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 brokenSteps to Reproduce
terraform apply
Important Factoids
No response
References
No response