Wenn ich mich mit eosctl login anmelde, kann ich kein Terraform-Skript ausführen, obwohl das laut Fehlermeldung gehen soll.
Code
$ eosctl login
WARNING: storing token insecure in file.
Consider installing keyring software like gnome-keyring if possible.
Login successful.
$ tofu plan
Planning failed. OpenTofu encountered an error while generating this plan.
╷
│ Error: Missing authentication
│
│ with provider["dl.eoscloud.io/eos/eoscloud"],
│ on main.tf line 10, in provider "eoscloud":
│ 10: provider "eoscloud" {
│
│ Set the token attribute or the EOSCLOUD_TOKEN environment variable, set client_id and client_secret for OAuth2 client
│ credentials flow, or run `eosctl login` to cache a device-flow token.
╵
Alles anzeigen
Mit den EOS_CLIENT-Umgebungsvariablen funktioniert es.