Assuming we have instance running, what can we run on that instance to detect whether it's x86_64
or graviton-based/ARM?
I thought about curl -s http://169.254.169.254/latest/meta-data/...
but found nothing useful in this case. Also, it's possible to detect using instance type (e.g. t4g.*
vs t3.*
) but I'd like to have more straightforward way.
Is there any?
Quick and easy check:
uname -m
Intel / AMD:
Graviton / ARM:
Display more details:
lscpu
For example for AMD CPU:
You can also display the output in JSON format for easier consumption in scripts (here for Graviton):
Hope that helps :)