Open kk-hiraskar opened 3 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,
affected_resources = oci_database_autonomous_database
Community Note
Terraform Version and Provider Version
Terraform version: 1.2.x (HashiCorp)
Affected Resource(s)
affected_resources = oci_database_autonomous_database
Issue
Document is not giving information on valid values that can be assigned to
database_management_status
https://registry.terraform.io/providers/oracle/oci/latest/docs/data-sources/database_autonomous_database#database_management_statusHowever using empty string
""
and"ENABLED"
is working.But the issue is observed when we wanted to disable DB Management.
And setting it to empty string
""
was deleting the resourceoci_database_management_managed_database_group
but however inside ATP it's status was still shown as enabled.So when setting value to
"NOT_ENABLED"
cleared this problem and inside ATP, database management status is also shown good. means"ENABLED"
->"NOT_ENABLED"
worked good, no issue.But the another issue is observed, when we were applying some other change where the unexpected ATP changes are shown
means on the 1st apply instead actual
NOT_ENABLED
state it is storing as empty and in next plans it is trying to set unintended change from empty toNOT_ENABLED
again!and also this next apply is failing with error..
Expected Behavior
database_management_status
NOT_ENABLED
state is not stored, and causing issues in successive plan/apply.Actual Behavior
after setting database management to
NOT_ENABLED
, any successive plan/apply should not show ATP change, even when nothing changed on ATPSteps to Reproduce
Important Factoids
OCI stack resource is used for all terraform actions
References
-