Don't use SSH but use AWS remote commands to execute commands on the instances. This is more secure and beter audited. <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ec2-run-command.html>