Open smckend-bunnings opened 2 months ago
Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format. Example: affected_resources = oci_core_instance , oci_core_instances
If it's not related to any particular resource then mention affected resource as terraform. Example: affected_resources = terraform
As this works through automation, request you to follow exact syntax.
Updated with affected resources syntax
Any update on this @tf-oci-pub ?
Potentially related to https://github.com/oracle/terraform-provider-oci/issues/2055
Any update on this @tf-oci-pub ?
@tf-oci-pub , Any update on this?
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