ES cluster set up issue on EC2

Too many machines found for pinging, and most of them don't have ES
installed.
Tried filter with groups, but it doesn't work.
Here is my discovery setting:
discovery:
type: ec2
ec2:
ping_timeout: 5s
groups: sgn2-stg-sss
any_group: false

--