Created a new getEC2Client function