Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400-InvalidParameter, The minimum number of days the automatic container database backup will be retained is 1 oci_database_autonomous_container_database #2228

Open
danilomnds opened this issue Oct 22, 2024 · 3 comments
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@danilomnds
Copy link

Terraform Version

Terraform v1.9.5
on windows_amd64
+ provider registry.terraform.io/hashicorp/oci v6.14.0
affected resource oci_database_autonomous_container_database

Terraform Configuration Files

I'm trying to import an autonomous container database because I cannot create this CBD using terraform due to gaps on documentation, like the db_version that should specify the database version, release and patch version.

The automatic backups are not enabled on OCI console and I'm not enabling it using the backup_config block.

module "cdb-vcp-prd-coe-001" {    
  source = "git::https://github.com/danilomnds/terraform-oci-autonomous-container-database?ref=v1.0.0"
  compartment_id = <compartment id>
  db_name = <db name>
  db_version = "19.24.0.1.0"
  patch_model = "RELEASE_UPDATES"
  display_name = "cdb-vcp-prd-coe-001"
  cloud_autonomous_vm_cluster_id = <autonomous vm cluster id>   
  defined_tags = {
    "IT.area":"infrastructure"
    "IT.department":"ti"    
  }
}
output "autonomous-container-database-name" {
  value = module.cdb-vcp-prd-coe-001.display_name
}
output "autonomous-container-database-id" {
  value = module.cdb-vcp-prd-coe-001.id
}

Debug Output

n/a

Expected Behavior

Creation of an autonomous container database

Actual Behavior

Error: 400-InvalidParameter, The minimum number of days the automatic container database backup will be retained is 1.
│ Suggestion: Please update the parameter(s) in the Terraform config as per error message The minimum number of days the automatic container database backup will be retained is 1.
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/database_autonomous_container_database
│ API Reference: https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/UpdateAutonomousContainerDatabase
│ Request Target: PUT https://database.sa-vinhedo-1.oraclecloud.com/20160918/autonomousContainerDatabases/ocid1.autonomouscontainerdatabase.......
│ Provider version: 6.14.0, released on 2024-10-20.
│ Service: Database Autonomous Container
│ Operation Name: UpdateAutonomousContainerDatabase
│ OPC request ID:

Steps to Reproduce

terraform apply

Additional Context

No response

References

No response

@danilomnds danilomnds added the bug label Oct 22, 2024
@tf-oci-pub tf-oci-pub added the In-Progress Terraform Team is working on the reproduce & fix label Oct 22, 2024
@tf-oci-pub
Copy link
Member

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

@deepika-oci
Copy link

please share the container database ocid and the OPC request ID for UpdateAutonomousContainerDatabase request.

@danilomnds
Copy link
Author

Follow de OPC request ID

OPC request ID: 557f17b8f5cef34ea6c1f5a423bc31e9/103AFEE745B27B73A7EE3A1964F127C2/BB4AC9C0DCD93C5057E2987E3EED6E11

OCID:
ocid1.autonomouscontainerdatabase.oc1.sa-vinhedo-1.an3ggljraehl73aavxqpmve6vmtcnytnwakyok6qv76ydziexiu2qihl4ofq

I just reproduced the error using the version 6.20.0 of OCI provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
Development

No branches or pull requests

3 participants