OCI provider claims deletion of NSG related resources is successful even though it failed due to a lack of permissions. #2087
Labels
awaiting-affected-resources
Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance
bug
Community Note
Issue Summary
We were wondering why a bunch of duplicate NSG resources were showing up in our OCI environment and recently realised that Terraform didn't actually have the required permissions to delete network related resources. Instead of failing whenever we tried to delete/replace network related issues, the Terraform OCI provider claims to have successfully deleted the resource(s) rather than failing due to a lack of permissions.
Terraform Version and Provider Version
terraform 1.1.9
oci 5.35.0
Affected Resource(s)
oci_core_network_security_group,
oci_core_network_security_group_security_rule
affected_resources = oci_core_network_security_group, oci_core_network_security_group_security_rule
Expected Behavior
Terraform should fail to delete resources that it doesn't have permission to delete.
Actual Behavior
Terraform "says" it deletes the resource and removes it from state but the resource still exists in OCI.
Steps to Reproduce
terraform destroy
The text was updated successfully, but these errors were encountered: