You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The not-found resource should be deleted from the state and a new tag should be created.
Actual Behavior
The user was removed from the state as expected but the terraform plan still crashed as the tag could not be found.
Steps to Reproduce
Create a user and a tag with terraform.
Delete the user manually
Run terraform plan
The text was updated successfully, but these errors were encountered:
drastawi
changed the title
Tags remain in the state after deletion
Tags are not cleaned up from the terraform state after being deleted externally
Mar 15, 2023
Most resources handle resources deleted manually or by another terraform project with
for example:
terraform-provider-pagerduty/pagerduty/resource_pagerduty_user.go
Line 172 in 820fb00
This handling is missing in the tag resource
Terraform Version
2.11.2
Affected Resource(s)
resourcePagerDutyTag
Terraform Configuration Files
Debug Output
The tag X cannot be found - 404
Expected Behavior
The not-found resource should be deleted from the state and a new tag should be created.
Actual Behavior
The user was removed from the state as expected but the terraform plan still crashed as the tag could not be found.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: