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

Remove TaskUUID from alert output #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Qantas94Heavy
Copy link

@Qantas94Heavy Qantas94Heavy commented Apr 19, 2024

uuid field is causing permanent TF drift, failures to apply and is not required in the alert output.

Example: https://buildkite.com/canva-org/infra-apply-terraform/builds/170168

  # module.sentry_high_frequency_alert[0].sentry_issue_alert.default will be updated in-place
  ~ resource "sentry_issue_alert" "default" {
      ~ actions      = jsonencode(
          ~ [
              ~ {
                  ~ channel    = "edge-notifications" -> "#edge-notifications"
                    id         = "sentry.integrations.slack.notify_action.SlackNotifyServiceAction"
                  ~ name       = "Send a notification to the Canva Slack workspace to edge-notifications (optionally, an ID: C021PEQFXGV) and show tags [] and notes  in notification" -> "Send a notification to the Canva Slack workspace to #edge-notifications (optionally, an ID: C021PEQFXGV) and show tags [] and notes  in notification"
                    tags       = ""
                  - uuid       = "7e1fecf2-bd58-4a8b-990c-c28a61bba5e9" -> null
                    # (3 unchanged elements hidden)
                },
            ]
        )
        id           = "14511763"
        name         = "High frequency of events(+500) in prod)"
        # (7 unchanged attributes hidden)
    }

Failure to apply:

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.sentry_high_frequency_alert[0].sentry_issue_alert.default, provider
│ "provider[\"canva.com/infrastructure/sentry\"]" produced an unexpected new
│ value: .actions: was
│ cty.StringVal("[{\"channel\":\"#edge-notifications\",\"channel_id\":\"C021PEQFXGV\",\"id\":\"sentry.integrations.slack.notify_action.SlackNotifyServiceAction\",\"label\":\"Send
│ a slack notification\",\"name\":\"Send a notification to the Canva Slack
│ workspace to #edge-notifications (optionally, an ID: C021PEQFXGV) and show
│ tags [] and notes  in
│ notification\",\"tags\":\"\",\"workspace\":\"23762\"}]"), but now
│ cty.StringVal("[{\"channel\":\"edge-notifications\",\"channel_id\":\"C021PEQFXGV\",\"id\":\"sentry.integrations.slack.notify_action.SlackNotifyServiceAction\",\"label\":\"Send
│ a slack notification\",\"name\":\"Send a notification to the Canva Slack
│ workspace to edge-notifications (optionally, an ID: C021PEQFXGV) and show
│ tags [] and notes  in
│ notification\",\"tags\":\"\",\"uuid\":\"7e1fecf2-bd58-4a8b-990c-c28a61bba5e9\",\"workspace\":\"23762\"}]").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

uuid field is causing TF drift and is not required in the JSON
output.
@Qantas94Heavy Qantas94Heavy marked this pull request as draft April 19, 2024 05:22
@Qantas94Heavy Qantas94Heavy marked this pull request as ready for review April 19, 2024 05:41
@Qantas94Heavy Qantas94Heavy changed the title Remove TaskUUID from JSON output Remove TaskUUID from alert output Apr 21, 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
1 participant