don't hijack TF_VAR, please use OCI instead. #494
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please consider using your own prefix for environment variables (
OCI
suggested here). For consumers of this SDK that are not using terraform,TF_VAR
is nonsensical. For consumers of terraform, the fact thatTF_VAR
references are accepted with no corresponding terraform variable blocks is very confusing.Given this local configuration...
It should NOT be possible to authenticate to OCI using this terraform configuration (but currently is):
When using
TF_VAR
as a prefix, this configuration would be consistent with every other usage of terraform that exists in the ecosystem today:By changing the supported prefix to
OCI
and removingTF_VAR
you would be introducing a breaking change for downstream consumers. Authentication (in terraform) without explicit variable references would stop working. Authenication in every other context for consumers that aren't in terraform, would make a bit more sense.If this change is landed, the following configuration would produce "normal" behavior consistent with every other provider in the ecosystem:
For reference, in the AWS world the same is possible using AWS-prefixed environment variables like
AWS_ACCESS_KEY
etc.If this is landed, the documentation here should simply switch from TF_VAR prefixes to OCI prefixes. Again, though this would be a breaking change, it would produce behavior consistent with the entire terraform ecosystem. If there are OSS repositories for this documentation I would be happy to submit companion PRs that explain this "fix".
/ref #318 (comment)