create reusable function to add ec2 instances to ssh_config