Key error fixed in ec2 launcher