I have custom Linux that I can boot up on AWS and GCP. In AWS I can check EC2 instance type easily from terminal:
aws-instance-xyz:/ # dmidecode -s system-product-name
m6i.4xlarge
I would like to be able to check instance type of compute engine in GCP however dmidecode command is of no use here:
gcp-instance-xyz:/ # dmidecode -s system-product-name
Google Compute Engine
I have to be able to check the instance type using a command in terminal. I can't install GCP cli on that linux environment so any gcloud/gutils commands are not an option.