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

FR: Support disabled mode for provider / lazy login only when used #183

Open
or-shachar opened this issue Jan 18, 2024 · 0 comments
Open

Comments

@or-shachar
Copy link

Hi,

we have the need to use this provider only on certain environment

provider "splunk" {
  url        = try(local.env_url,"")
  auth_token = try(local.auth_token,"")
}

The resources that use that provider use count to make sure that they don't run on the non-supported env.

The problem is that today there's no way to configure the provider with dummy values as it performs the login during the configureProvider method.

Suggestions:

  1. [better] Perform the login only on first usage (lazy login)
  2. [alt] Skip login in case url is empty or introduce a new property called enabled (IMO less preferable)
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