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

make create-cluster results in Error: open .env.yaml: no such file or directory #8

Open
outbackdingo opened this issue Nov 19, 2024 · 1 comment

Comments

@outbackdingo
Copy link

using proxmox, went through the prepare and init just fine...

make init create-config create-templates finished without warnings

make create-cluster fails with


│ Error: open .env.yaml: no such file or directory

│ with data.sops_file.envs,
│ on auth.tf line 24, in data "sops_file" "envs":
│ 24: data "sops_file" "envs" {



│ Error: Failed to get the data key required to decrypt the SOPS file.

│ Group 0: FAILED
│ age1ngvggfld4elq68926uczkes9rcqfjhnqn0tr6l8avyp4h46qzucqvx3sdf: FAILED
│ - | failed to create reader for decrypting sops data key with
│ | age: no identity matched any of the recipients

│ Recovery failed because no master key was able to decrypt the file. In
│ order for SOPS to recover the file, at least one key has to be successful,
│ but none were.

│ with data.sops_file.tfvars,
│ on variables.tf line 32, in data "sops_file" "tfvars":
│ 32: data "sops_file" "tfvars" {


make: *** [create-cluster] Error 1

@sergelogvinov
Copy link
Owner

Hi, yep, you need to prepare your SOPS environment.

Terraform uses the keys to encrypt/decrypt the proxmox/talos keys.
See the Makefile and .sops.yaml files

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