* parameterize ec2 discovery type