rancher / quickstart

381 stars 338 forks source link

[docs] Warning: Value for undeclared variable - The root module does not declare a variable named "ssh_key_file_name" but a value was found in file "terraform.tfvars" #192

Closed ceefour closed 2 years ago

ceefour commented 2 years ago

When applying hcloud:

Neither seems to be accurate:

│ Warning: Value for undeclared variable
│ 
│ The root module does not declare a variable named "ssh_private_key_pem" but a value was found in
│ file "terraform.tfvars". If you meant to use this value, add a "variable" block to the
│ configuration.
│ 
│ To silence these warnings, use TF_VAR_... environment variables to provide certain "global"
│ settings to all configurations in your organization. To reduce the verbosity of these warnings, use
│ the -compact-warnings option.

So, what is the correct variable?

bashofmann commented 2 years ago

The documentation is outdated. Since https://github.com/rancher/quickstart/pull/86 the SSH keys are auto generated. After the terraform apply, you'll have a id_rsa and id_rsa.pub file in the modules directory. I'll update the documentation accordingly.

bashofmann commented 2 years ago

The documentation update has been merged.

ceefour commented 2 years ago

Thanks you @bashofmann