work in progress ec2 and elasticsearch