Aborting if keyname or security group is already registered in EC2