Cant run plan after manually deleting resources in the UI that are in the state #407
Closed
Description
Describe the bug
When manually deleting a Replication Rule in Harbor (via UI) that is in the terraform state the terraform plan fails afterwards.
To Reproduce
- Create a Replication Rule via Terraform
- Run terraform apply, the resource is create and in the terraform state
- Delete via the Harbor UI
- Planning failed. OpenTofu encountered an error while generating this plan. Error: Resource not found harbor_replication.replication_name
Expected behavior
I compared this to the aws provider, this would be the expected behaviour in imo
- Create S3 Bucket via Terraform
- Run terraform apply, the resource is create and in the terraform state
- Delete via the AWS Console
- Run a terraform plan "1 to add, 0 to change, 0 to destroy"
- Run a terraform apply "1 added, 0 changed, 0 destroyed" Recreates the manuall deleted s3 bucket
Additional context
I assume the same behaviour applies for many other resources like projects, members and others.
- Provider Version 3.10.5
- Terraform Version OpenTofu Something
- Harbor Version v2.9.0
Metadata
Assignees
Labels
No labels