Skip to content

Provider configuration not able to accept variable #6

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

Open
joshuajetomo opened this issue May 22, 2025 · 1 comment
Open

Provider configuration not able to accept variable #6

joshuajetomo opened this issue May 22, 2025 · 1 comment

Comments

@joshuajetomo
Copy link

What happened?

│ Error: Unknown Karpor API Endpoint │ │ with provider["registry.terraform.io/kusionstack/karpor"], │ on main.tf line 72, in provider "karpor": │ 72: api_endpoint = var.api_endpoint │ │ The provider cannot create the Karpor API client as there is an unknown configuration value for the Karpor API │ endpoint. Either target apply the source of the value first, set the value statically in the configuration, or │ use the KARPOR_API_ENDPOINT environment variable.

What did you expect to happen?

accept variable from tfvars

How can we reproduce it (as minimally and precisely as possible)?

create variable and set to tfvars

Anything else we need to know?

No response

Karpor version

v0.6.3

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

@joshuajetomo
Copy link
Author

It's only working when i export the variable or hardcode the value

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