ssh — AWS CLI 2.34.40 Command Reference
Use the AWS CLI 2.34.40 to run the ec2-instance-connect ssh command.