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

"Invalid attribute in provider configuration" error when running upstream/aws/rke recipe #99

Open
kourosh7 opened this issue Jan 23, 2024 · 2 comments

Comments

@kourosh7
Copy link

running terraform plan on the upstream/aws/rke recipe throws the following error after filling in the required variables in terraform.tfvars:

Invalid attribute in provider configuration

  with module.rancher_install.provider["registry.terraform.io/hashicorp/kubernetes"],
  on ../../../../modules/rancher/provider.tf line 7, in provider "kubernetes":
   7: provider "kubernetes" {

'config_path' refers to an invalid path: "/tmp/tf-rancher-up/recipes/upstream/aws/rke/kourosh-maneshni_kube_config.yml": stat /tmp/tf-rancher-up/recipes/upstream/aws/rke/kourosh-maneshni_kube_config.yml: no such file or directory
@kourosh7
Copy link
Author

It seems like it expects the kube config file to exist. When I ran touch kourosh-maneshni_kube_config.yml in that directory, terraform plan no longer threw the error.

Why does it need to exist? Shouldn't the rke cluster creation create that file for you as an output?

@leodotcloud
Copy link
Contributor

@dkeightley Do you have any inputs on how to fix this issue? Would passing dependencies between modules solve this problem?

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

2 participants