I don't think there's a (official) list of Amazon IPs. But there is for AWS: https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html - it's more than 100M.
I don't know a good way of blocking that amount of IPs.
Also, there are AWS-based solution running behind non-AWS CDNs. That wouldn't be blocked using the above list.
In other words, I don't think there's a good way of doing this.
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko