A timeout error while connecting usually refers to network issues. Mkae sure you can connect to the instance first over the port.
Try something like "Test-NetConnection -Port 587 -ComputerName InstanceName" to verify
https://docs.aws.amazon.com/ses/latest/dg/send-email-smtp-client-command-line.html