terraform-provider-oci
terraform-provider-oci copied to clipboard
Data Guard cannot be enabled during database creation
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 v0.14.7
- provider registry.terraform.io/hashicorp/oci v4.36.0
- provider registry.terraform.io/hashicorp/random v3.1.0
- provider registry.terraform.io/hashicorp/template v2.2.0
- provider registry.terraform.io/hashicorp/tls v3.1.0
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.
any update on the issue ?facing same issue.. need to run 2 times to enable DG
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.
Fixed with the latest version of terraform provider. Please verify.