Mount an S3 bucket using IAM roles
After much searching around I discovered that newer versions of s3fs support IAM roles (I’m using 1.77). Unfortunately, this functionality is barely documented.
I ended up using the following line to mount my directory:
NB: s3fs does not need s3://
If the role you’re trying to use does not have access you’ll get something like this:
The other error message I’ve seen is:
This happened when I specified the role incorrectly (it does not need to be the full arn).