Skip to content

sentry_issue_alert requires specifying all available condition triggers #598

Open
@carlogarciaau

Description

@carlogarciaau

TF client version: v1.11.0
Provider version: 0.14.3

In the Sentry console -> alerts -> Set conditions, we only set the minimum required triggers:
Image

But in the provider documentation, example usage shows a sample code where all conditions are explicitly defined with empty {}.

I tried my code with only the required triggers as follows:

action_match = "any"
frequency    = 1440
environment  = "prd"

conditions_v2 = [
  {
   event_frequency = {
        comparison_type = "count"
        value           = 5
        interval        = "1h"
      }
    },
]

And I get the following error:

│ 
│   with sentry_issue_alert.my_crappy_service_is_down,
│   on crappy_service.tf line 1, in resource "sentry_issue_alert" "my_crappy_service_is_down":
│    1: resource "sentry_issue_alert" "my_crappy_service_is_down" {
│ 
│ Unable to update, got status 400: {"conditions":["Ensure all required fields are filled in."]}
╵

Can we fix the provider to allow only specifying the required conditions?

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