You can now use AWS Config to assess license compliance on committed Hosts by turning on recording for instances and hosts. AWS Config records when instances are launched,stopped, or terminated on a committed Host, and pairs this information with host and instance level information relevant to software licensing,such as Host ID, Amazon Machine Image (AMI) IDs, and number of sockets and physical cores. This enables you to use AWS Config as a data source for license reporting.
Source: amazon.com