imlement some aws ec2 operations.