oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

bug: oci cli doesn't respect delete protection lock set by terraform oci provider

Open luckeyca opened this issue 3 years ago • 1 comments

when creating comparting using terraform oci provider resource, oci_identity_compartment, there is a default enable_delete = false setting to protect the compartment from being deleted. However, with the default setting, terraform cli cannot delete the compartment, oci cli doesn't respect the setting and still can delete the compartment.

luckeyca avatar Sep 23 '22 21:09 luckeyca

Hi @luckeyca Thanks for reporting that. OCI CLI does not use the same config/setting that OCI Terraform is using, but we will look into adding this feature to CLI as well. Thanks

HamadaGabrIbrahim avatar Sep 28 '22 18:09 HamadaGabrIbrahim