superorbital / cludo

Sudo for the Cloud.
Other
4 stars 1 forks source link

Rework cludo ssh key config, etc. #82

Closed spkane closed 2 years ago

spkane commented 2 years ago

Fixes #52

and a few other minor things along the way...

spkane commented 2 years ago
$ grep ssh_ ~/.cludo/cludo.yaml
ssh_key_paths: ["~/.ssh/id_rsa_aws_2020", "~/.ssh/id_ed25519_2020"]

$ aws ec2 describe-instances

Unable to locate credentials. You can configure credentials by running "aws configure".

$ ./builds/darwin_amd64_cludo --debug shell
[WARN] Currently cludo only uses the first SSH key in the config list.
See: https://github.com/superorbital/cludo/issues/81

$ aws ec2 describe-instances | head -n 5
- Reservations:
  - Groups: []
    Instances:
    - AmiLaunchIndex: 0
      Architecture: x86_64