Deal with ec2_level1 and ec2_level2