Accessing .bam/.cram files from AWS S3?
You could set up a public read-only bucket in an S3 account and put your files there. URLs would look like:

https://${username}.s3.amazonaws.com/public/${filename}


For samtools, the request for a BAM file's index should be built off that URL. For IGV, I think you can specify separate, custom URLs for the data and the index resources.

Public buckets are available to all, without need for credentials. So that might be an issue to think about, with respect to billing for web requests and data transfer.

I'm still not 100% certain that samtools/tabix support https requests reliably (I have a prior question on here about that), but that might be one approach.