Skip to content

sentry_issue_alert with webhook return error but create the rule #559

Open
@xalagu

Description

@xalagu
  • version: 0.14.3
  • I try to set webhook alert and I got some errors.
  • In provider documentation missing an example to set webhook alerts
resource "sentry_plugin" "my_webhook" {
  organization = data.sentry_organization.sentry.id
  project      = sentry_project.my_prj.internal_id
  plugin       = "webhooks"
  config = {
    urls = "https://my-webhook/url"
  }
}

resource "sentry_issue_alert" "my_webhook_alert" {
  organization = data.sentry_organization.sentry.id
  project      = sentry_project.my_prj.internal_id
  name         = "webhook alert"
  owner    = "team:${data.sentry_team.sentry.internal_id}"

  action_match = "any"
  filter_match = "any"
  frequency    = 30

  actions_v2 = [
    {
      notify_event_service = {
        service = sentry_plugin.my_webhook.id
      }
    },
  ]
}

in sentry everything is fine but TF return following error:

 When applying changes to sentry_issue_alert.my_webhook_alert, provider
│ "provider[\"registry.opentofu.org/jianyuan/sentry\"]" produced an unexpected new value: .project: was
│ cty.StringVal("14"), but now cty.StringVal("my_prj").
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions