FS#78870 - [aws-cli-v2] EIC does not work.

Attached to Project: Arch Linux
Opened by Guillaume Friloux (kuri) - Friday, 23 June 2023, 14:09 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Monday, 26 June 2023, 07:06 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Chih-Hsuan Yen (yan12125)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I am not able to use EIC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect.html) using this package.
Removing the package to install aws-cli from "official way" (https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) gives me a working EIC.

I have been trying to run aws with --debug to spot any issue (as it does not throw ANY error...), but i can't see anything of value.
Everything tends to say it works, but :
debug1: Executing proxy command: exec /usr/sbin/aws ec2-instance-connect open-tunnel --instance-id i-06dXXXXX --private-ip-address 192.168.XX.XX --remote-port 22 --profile XXXXX --instance-connect-endpoint-id eice-0aXXXXX --instance-connect-endpoint-dns-name eice-0a6XXXXX.ec2-instance-connect-endpoint.eu-west-3.amazonaws.com
debug1: identity file /tmp/tmpf4n6wvez/private-key type 3
debug1: identity file /tmp/tmpf4n6wvez/private-key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.3
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

Additional info:
* package version : 2.12.1-1

Steps to reproduce:
* Install aws-cli-v2 package
* Get an account ready to use EIC
* try : aws ec2-instance-connect ssh --instance-id i-YOUR_INSTANCE_ID --profile YOUR_PROFILE_IF_ANY --debug
* uninstall package, use amazon's install script, try EIC again, it works
This task depends upon

Closed by  Chih-Hsuan Yen (yan12125)
Monday, 26 June 2023, 07:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-awscrt 0.16.21-1
Comment by Guillaume Friloux (kuri) - Friday, 23 June 2023, 14:26 GMT
To be completely honest, it is possible that the issues comes from my internal configuration.
Using arch's package, i see it's calling `/usr/sbin/aws` internally, while aws's version will call `aws` and trust $PATH.

This may be an issue in my setup as i normally use boxxy.
Theorically, i did things right for my tests, as i did move my ~/.config/aws into ~/.aws, but we never really knows.
Comment by Chih-Hsuan Yen (yan12125) - Saturday, 24 June 2023, 17:14 GMT
Thanks for the report. For me the command crashes in python-awscrt. Could you try if python-awscrt 0.16.21 fixes the issue or not?
Comment by Guillaume Friloux (kuri) - Saturday, 24 June 2023, 17:40 GMT
Hello, i have no access to this computer until monday, but i will try
Comment by Guillaume Friloux (kuri) - Monday, 26 June 2023, 06:41 GMT
Hello, i confirm that python-awscrt 0.16.21 fixes the issue, it is now working here!
Comment by Chih-Hsuan Yen (yan12125) - Monday, 26 June 2023, 07:06 GMT
Cool, thanks for testing!

Loading...