sergelogvinov / terraform-talos

Terraform examples to run Talos
MIT License
110 stars 19 forks source link

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

Open outbackdingo opened 1 week ago

outbackdingo commented 1 week ago

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 commented 3 days ago

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