oracle / terraform-provider-oci

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

Data Guard cannot be enabled during database creation #1426

Open woshileo opened 3 years ago

woshileo commented 3 years ago

Community Note

Terraform Version and Provider Version

Terraform v0.14.7

Affected Resource(s)

oci_database_autonomous_database

Terraform Configuration Files

resource "oci_database_autonomous_database" "database" {
  admin_password                = "RandomPasswordHere13@"
  db_name                             = "test"
  is_data_guard_enabled      = true
}

Expected Behavior

Data Guard should be enabled when the database is being created.

Actual Behavior

Error: 400-InvalidParameter
Provider version: 4.36.0, released on 2021-07-21.
Service: Database Autonomous
Error Message: Operation failed. Cannot enable Autonomous Data Guard during database creation.

Steps to Reproduce

Trying to plan or apply a Terraform templates that provision Autonomous Database with is_data_guard_enabled set to true.

nkm269 commented 2 years ago

any update on the issue ?facing same issue.. need to run 2 times to enable DG

tf-oci-pub commented 1 year ago

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

navg-orcl commented 1 year ago

Fixed with the latest version of terraform provider. Please verify.

navg-orcl commented 4 months ago

This issue has been fixed. Please verify and close the ticket.