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

sentry_issue_alert with webhook return error but create the rule #559

Open
xalagu opened this issue Jan 19, 2025 · 0 comments
Open

sentry_issue_alert with webhook return error but create the rule #559

xalagu opened this issue Jan 19, 2025 · 0 comments

Comments

@xalagu
Copy link

xalagu commented Jan 19, 2025

  • 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,

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

1 participant