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

[Bug]: SNS contact point returns 400 invalid object specification

Open zmully opened this issue 1 year ago • 0 comments

Terraform Version

1.9.3

Terraform Grafana Provider Version

3.7.0, 2.19.4

Grafana Version

AWS Managed Grafana 10.4

Affected Resource(s)

  • grafana_contact_point

Terraform Configuration Files

Using CDKTF.

    new ContactPoint(this, chain, {
      name: chain,
      sns: [
        {
          topic: '<REDACTED ARN STRING>',
        },
      ],
    });

Synthed JSON resource

  "resource": {
    "grafana_contact_point": {
      "security": {
        "//": {
          "metadata": {
            "path": "contact-points-deployments-production-us-east-1/security",
            "uniqueId": "security"
          }
        },
        "name": "security",
        "sns": [
          {
            "topic": "<REDACTED ARN STRING>"
          }
        ]
      }
    }
  },

Expected Behavior

SNS contact point should be created using the default workspace role for auth.

Manually creating contact point for the SNS topic ARN works and test notifications succeed.

Actual Behavior

contact-points-deployments-production-us-east-1  grafana_contact_point.security (security): Creating...
contact-points-deployments-production-us-east-1  ╷
                                                 │ Error: [POST /v1/provisioning/contact-points][400] postContactpointsBadRequest {"message":"invalid object specification: failed to validate integration \"security\" (UID ) of type \"sns\": notifier sns is not supported"}
                                                 │ 
                                                 │   with grafana_contact_point.security (security),
                                                 │   on cdk.tf.json line 124, in resource.grafana_contact_point.security (security):
                                                 │  124:       }

Steps to Reproduce

No response

Important Factoids

Tested with TF grafana providers 2.19.4, 3.7.0, Terraform 1.6.3 and 1.9.3, CDKTF 0.19.x and 0.20.x

Tested on a fresh 10.4 AMG workspace as well as an existing upgraded workspace (9.4 -> 10.4).

References

No response

zmully avatar Aug 06 '24 16:08 zmully