Not sure about the other distributions, or where to find the owner in the UI, but this is the code I use for the latest ubuntu 16.04 hvm-ssd AMI:
data "aws_ami" "ami" {
most_recent = true
# ubuntu ami account ID
owners = ["099720109477"]
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
}
}
Whether the names are consistent over time is up to the provider of the AMIs.
As for the owner ID, if you have an AMI ID, you can run this at the command line (with the appropriate region and AMI ID, obviously):
$ aws ec2 describe-images --region us-east-1 --image-ids ami-da05a4a0
And OwnerId is a field in the result.