Open F21 opened 1 year ago
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.
The domain details passed in DELETE API do not exists. Can you please retry with correct details.
@rakeshnikam13 I removed the ocid of the domain in the logs for privacy reasons. As stated in the issue, the reason the delete is failing is because the provider does not deactivate the domain first before deleting, which causes it to fail.
This is fixed in my PR #1782
@F21 Thanks for fixing the issue. Can we close this ticket?
@rakeshnikam13 PR #1782 is still open and has not been merged. Maybe we should close this issue after that's been merged?
Any update on this ? Can the above PR be merged?
This still seems to be an issue. Any update on when this issue will be addressed?
Community Note
Terraform Version and Provider Version
Terraform v1.3.9 on linux_amd64
Affected Resource(s)
oci_identity_domain
Terraform Configuration Files
Debug Output
Panic Output
None
Expected Behavior
Destroying an identity domain should work properly.
Actual Behavior
Destroying an identity domain returns the following error:
Error: 412-PreConditionFailed, Cannot perform DELETE_DOMAIN operation on Domain with Status CREATED
Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
None
References
API Docs: https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/Domain/DeleteDomain