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

support the same environment variables as the CLI #495

Open
tkellen opened this issue Apr 24, 2024 · 1 comment
Open

support the same environment variables as the CLI #495

tkellen opened this issue Apr 24, 2024 · 1 comment

Comments

@tkellen
Copy link

tkellen commented Apr 24, 2024

When consuming this SDK via terraform, it is not possible to use the environment variables documented in the CLI here:
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clienvironmentvariables.htm

I would expect a terraform configuration as follows:

provider "oci" {
  region = "us-chicago-1"
}

...to function with the profile in ~/.oci/config if I ran OCI_CLI_PROFILE=myprofile terraform apply. It appears the env vars for the CLI are specific to the python implementation?

This is very confusing.

/ref #494

@tkellen
Copy link
Author

tkellen commented Apr 24, 2024

As a possible alternative, just specify a common set of new environment variables that are accepted in every language and implementation so that end users have a consistent experience interacting with OCI tooling? That seems like a large effort but as a new user it is quite byzantine coming from other ecosystems (GCP/AWS/Azure etc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant