[CentOS] Identifying Official CentOS AWS AMIs

Paul Heinlein
Tue, 02 Jan 2018 19:02:26 -0000

I'm trying to automate identification of CentOS AWS images. It appears
that official CentOS AMIs have an OwnerID value of 410186602215, but
I'm not sure if that value is transient or specific to one or more
AWS regions.

Is there a maintainer lurking here that can confirm or deny?

Here's the base query I'm testing:

aws ec2 describe-images \
   --owners 410186602215 \
   --output text \
   --query 'reverse(sort_by(Images,
&CreationDate))[?starts_with(Description, `CentOS Linux 7`)].[ImageId,
CreationDate, Description]'

--
Paul Heinlein
heinlein at madboa.com
45?38' N, 122?6' W