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

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

Open
zmully opened this issue Aug 6, 2024 · 0 comments
Open

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

zmully opened this issue Aug 6, 2024 · 0 comments
Assignees

Comments

@zmully
Copy link

zmully commented Aug 6, 2024

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 zmully added the bug label Aug 6, 2024
@yuri-tceretian yuri-tceretian self-assigned this Aug 21, 2024
@Duologic Duologic removed the bug label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants