adapting to ec2
adapting to ec2