ec2: Implement GetConsoleOutput

Implement GetConsoleOutput in EC2.