What is the ip range of EC2
Solution 1:
You can find the updated list here: https://forums.aws.amazon.com/ann.jspa?annID=1701
Solution 2:
+1 to what gekkz said. Also I would suggest installing fail2ban to help preserve system resources for more important things than dictionary attacks.