cloud-init query -a

Category: IaC & Automation

cloud-init query -a

Print all instance metadata as key-value pairs

Dumps every known instance-data key, such as instance ID, region, and hostname, collected during boot. Handy for verifying what the datasource (the source of cloud information) actually provided. Related: cloud-init query v1.local_hostname.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.