I haven't been able to find any specific information on this subject so I'm trying my luck here.
I would like to know if it is possible (and how) to use samtools on an ARM architecture? I would indeed like to use it on aws using the graviton processors.
We have tested samtools on ARM architecture and it does work.
I have not used AWS Graviton myself so I cannot tell you how to make samtools work there. It does support Ubuntu and Ubuntu does support ARM samtools packages. The Ubuntu LTS releases use outdated versions of samtools (1.10 it looks like). If you want something more modern you are going to have to install it yourself somehow.
Looks like a debian package is available for
samtools
that supports arm64. You will have to try and see if that works.