I use the following playbook in AAP to test my AWS instances to ensure they are using BYOS Linux vs the more expensive PAYG images.
You will need an inventory source, and playbook.
Create a template from the playbook, and run it. It will error if any instances are not BYOS.