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