Chad pointed out in IRC that cloud-init query platform is the supported way to get that information, but also that cloud-init query in general can probably be the source for all this information, on clouds other than EC2 as well.
Chad pointed out in IRC that cloud-init query platform is the supported way to get that information, but also that cloud-init query in general can probably be the source for all this information, on clouds other than EC2 as well.