terraform-provider-oci
terraform-provider-oci copied to clipboard
affected_resources = oci_database_oneoff_patch
Resource Discovery throws an error as I don't have oci_database_oneoff_patch enabled in my tenancy. The error is below and a suggestion of how to resolve is mentioned but I don't understand how to achieve this resolution. From the cli parameters I can exclude the service database to get around this error but I know some compartments I have will need me to discover databases so I can't use that workaround everywhere.
INFO 2024/01/16 10:00:42.006507 Error discovering `oci_database_oneoff_patch` resources: 400-InvalidParameter, You are attempting to use a feature that's not currently enabled for this tenancy.
Suggestion: Please update the parameter(s) in the Terraform config as per error message You are attempting to use a feature that's not currently enabled for this tenancy.
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/data-sources/database_oneoff_patches
API Reference: https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches
Request Target: GET https://database.eu-frankfurt-1.oraclecloud.com/20160918/oneoffPatches?compartmentId=ocid1.compartment.oc1..aaaaaaaahph3eeg4uqur3hjdsuzz7no2os4dqmrzavwkxgbosqpsllnak7ia
Provider version: 5.24.0, released on 2024-01-10.
Service: Database Oneoff Patches
Operation Name: ListOneoffPatches
OPC request ID: f0f36602596c8cff7671b9be2c51a6ad/89EDB45E97EB57BE06419D6D9BD4B5C7/876289D492CAD09C84C92B05140118BE
Error Message: Error discovering oci_database_oneoff_patch resources: 400-InvalidParameter, You are attempting to use a feature that's not currently enabled for this tenancy.
Suggestion: Please update the parameter(s) in the Terraform config as per error message You are attempting to use a feature that's not currently enabled for this tenancy.
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/data-sources/database_oneoff_patches
API Reference: https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ListOneoffPatches
Request Target: GET https://database.eu-frankfurt-1.oraclecloud.com/20160918/oneoffPatches?compartmentId=ocid1.compartment.oc1..aaaaaaaahph3eeg4uqur3hjdsuzz7no2os4dqmrzavwkxgbosqpsllnak7ia
Provider version: 5.24.0, released on 2024-01-10.
Service: Database Oneoff Patches
Operation Name: ListOneoffPatches
OPC request ID: f0f36602596c8cff7671b9be2c51a6ad/89EDB45E97EB57BE06419D6D9BD4B5C7/876289D492CAD09C84C92B05140118BE
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.