Add support for ec2.