- 
                Notifications
    
You must be signed in to change notification settings  - Fork 724
 
Open
Labels
In-ProgressTerraform Team is working on the reproduce & fixTerraform Team is working on the reproduce & fixbug
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
 - Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
 - If you are interested in working on this issue or have submitted a pull request, please leave a comment
 
Terraform Version and Provider Version
$ terraform -v
Terraform v1.13.4
on linux_amd64
+ provider registry.terraform.io/oracle/oci v7.23.0
Affected Resource(s)
oci_core_volume
Terraform Configuration Files
autotune_policies = [
  {
    autotune_type = "DETACHED_VOLUME"
  },
  {
    autotune_type   = "PERFORMANCE_BASED"
    max_vpus_per_gb = 120
  }
]
Debug Output
Panic Output
Expected Behavior
I've provisioned a detached volume with the above autotone_policies. If I want to delete/disable the policies, I'm expecting that the commenting/removal of all the autotune_policies section from the tfvars will result in disabling/deletion of the policies.
Actual Behavior
Only if I delete the
  {
    autotune_type   = "PERFORMANCE_BASED"
    max_vpus_per_gb = 120
  }
Terraform deletes that policy. If I delete/comment the whole autotune_policies block from the tfvars, nothing happens.
Steps to Reproduce
terraform applyusing the aboveautotune_policies.- comment or remove  the whole 
autotune_policiesblock terraform applyagain.
Important Factoids
References
Metadata
Metadata
Assignees
Labels
In-ProgressTerraform Team is working on the reproduce & fixTerraform Team is working on the reproduce & fixbug