aws / aws-ec2-instance-connect-cli

This is an all-in-one client for EC2 Instance Connect that handles key brokerage and establishing connection to EC2 Instances through an interface near-identical to standard system ssh, sftp, and other utilities.
Apache License 2.0
160 stars 42 forks source link

Presence of empty AWS_DEFAULT_PROFILE env var breaks the CLI #36

Open diversario opened 1 month ago

diversario commented 1 month ago

If AWS_DEFAULT_PROFILE exists in the environment and is empty:

❯ AWS_DEFAULT_PROFILE= AWS_PROFILE=not-default-one mssh ubuntu@i-aaaaaaaaaaaaa
The config profile () could not be found

Additionally, if AWS_DEFAULT_PROFILE is set to anything, the tool ignores any other profile indication and always uses the default profile.