Skip to content

Provider fails to reconcile deleted sentry_issue_alert resource #681

@AbbyFlint

Description

@AbbyFlint

For terraform provider version 0.14.6

Expected Behaviour:

If a resource is deleted manually the terraform provider should reconcile the difference and plan to recreate the resource align the actual infrastructure with the desired state in configuration.

Current Behaviour:

When sentry_issue_alert is deleted manually in console, the next terraform plan or terraform apply refreshes the resource then fails with

│ Error: Not found
│ 
│   with sentry_issue_alert._main,
│   on terraform line 138, in resource.sentry_issue_alert._main:
│ 1138:       }
│ 
│ No matching issue alert found
╵

Instead of planning to recreate the missing resource, Terraform fails. The only workaround is to manually remove the resource from state using:

terraform state rm sentry_issue_alert._main

The provider should handle externally deleted resources by planning to recreate them, without requiring manual state manipulation. This behavior breaks expected Terraform patterns around drift detection and reconciliation.

Steps To Reproduce:

create a sentry_issue_alert in code
delete it in the sentry web console
next terraform plan fails with error above

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