CQ on OCI Dedicated Region
Hello, I’m trying to run CloudQuery on an OCI Dedicated Region. Now, with Terraform, I used to pass the variable domain_name_override
and it works. Unfortunately, CloudQuery seems not to digest this variable.
Do you have any idea how to solve it?
The error is the following:
dial tcp: lookup identity.<new_region>.oci.oraclecloud.com on 10.0.0.2:53: no such host
At the following link, the doc about adding a new region: Adding New Region Endpoints
Hi @sought-rooster! Although it’s not really obvious, the TF_VAR_
prefix might help you out. See the doc for more information.
Hi @KernelKnight,
I used the TF_VAR_
prefix. Sorry for the inaccuracy of the post. Here below is the environment variable for the AWS ECS task:
{
"name": "TF_VAR_domain_name_override",
"value": "oraclecloudXX.com"
}
This variable isn’t listed in the docs: Oracle API Key Authentication.
I suppose you’re trying the following workaround: Adding New Region Endpoints, aren’t you?
The domain_name_override
is specific to TF provider implementation and not currently supported by the CloudQuery Oracle plugin.
Could you open an issue on GitHub if that’s crucial to your setup?
Yes, it is crucial. We are moving to a Cloud Dedicated Region and without this functionality we are not able to use CloudQuery.
I’ve opened an issue on GitHub: https://github.com/cloudquery/cloudquery/issues/16015
Thanks for the help!
Hi @sought-rooster!
Could you do some additional research so that we can implement this better? First off, have you tried using OCI_REGION_METADATA
as described in this doc?
Or using the cfg file?
I’ve dug through the codebase for the SDK we use in the plugin and I think the plugin can be configured to use the dedicated region using the following procedure (I’m also adding this to the docs):
Dedicated Regions
OCI Dedicated regions can be accessed via the following procedure:
-
Specify the region to be used for the discovery as the dedicated region. The following options are available:
- Set
OCI_CLI_region
environment variable
- Set
region
value in the configuration file
-
Specify the dedicated region information: The following options are available: