oracle / terraform-provider-oci

Terraform Oracle Cloud Infrastructure provider
https://www.terraform.io/docs/providers/oci/
Mozilla Public License 2.0
758 stars 680 forks source link

Impossible to remove autotune_policies from config via dynamic block, because its computed #1699

Open darkfibre opened 2 years ago

darkfibre commented 2 years ago

This appears to be the exact same type of issue as https://github.com/oracle/terraform-provider-oci/issues/869, but it affects autotune_policies. If I have a dynamic block setting an autotune_policy in a module, and then later remove the condition, then the block is left unchanged.

From my understanding, this is the behavior of Terraform because autotune_policies is set to be Optional and Computed. If it was just Optional, this would work as expected.

ravinitp commented 1 year 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.