Removed ec2 module dependencies.