How to fetch EC2 ami owners and ami ids using terraform?

Can I get a list of AMI owners and their published ami ids ?
Currently I need to use filter and id of the publisher (etc: canonical’s ID which is a big numeric value)
IS there an easy way to get the list without having to specify ID as opposed to a name (eg: canonical)
Even better, there should be a data resource to get a map of EC2 publisher name<>ID