-
Notifications
You must be signed in to change notification settings - Fork 269
Description
Terraform Version
1.7
Terraform Grafana Provider Version
3.24.0
Grafana Version
11.5.1
Affected Resource(s)
Creating a grafana_contact_point resource gives me the following error:
╷
│ Error: [POST /v1/provisioning/contact-points][400] postContactpointsBadRequest {"message":"invalid object specification: failed to validate integration "Alerts SNS Terraform" (UID ) of type "sns": must specify topicArn, targetArn, or phone number"}
│
│ with grafana_contact_point.grafana_sns_alarm_endpoint,
│ on main.tf line 21, in resource "grafana_contact_point" "grafana_sns_alarm_endpoint":
│ 21: resource "grafana_contact_point" "grafana_sns_alarm_endpoint" {
│
╵
As much as I saw in the documentation, there is no valid "topicArn" or "targetArn" field
I also tried to hardcode everything already without environment variables, but the error stays the same
Terraform Configuration Files
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "> 5.34"> 3.24.0"
}
grafana = {
source = "grafana/grafana"
version = "
}
}
required_version = "~> 1.7"
}
resource "grafana_contact_point" "grafana_sns_alarm_endpoint" {
name = "Alerts SNS Terraform"
sns {
topic = "arn:aws:sns:eu-central-1:${var.aws_account_room_id[terraform.workspace]}:Grafana_Events_Topic"
assume_role_arn = "arn:aws:sns:${var.region}:${var.aws_account_room_id[terraform.workspace]}:${var.sns_name_topic_grafana}"
body = "{"description":"{{ .CommonAnnotations.summary }}","alertname":"{{ .CommonLabels.alertname }}","event_id":"{{ .CommonLabels.event_id }}","severity":"{{ .CommonLabels.severity }}"}"
subject = "{\"subject\":\"Grafana Alert\"}"
}
}
Expected Behavior
No response
Actual Behavior
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response