I'm trying to use s3fs to mount an S3 bucket on to a standard AWS Amazon Linux AMI (with all the necessary dependencies installed). However when following this tutorial when I run: s3fs mybucketname -o allow_other myfolder
or variations thereof, I get a response of:
s3fs: could not determine how to establish security credentials
I've tried:
- creating passwd-s3fs in the etc folder, with the format: accessID:secretAccessKey
- creating .passwd-s3fs in the home folder
- setting AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY environment variables
- Opening up permissions on passwd-s3fs as far as possible (it's become more secure since this question)
- Giving the IAM user associated with this Access Key Administrator Access
- Successfully connecting via a local client with the same Access & Secret Access Key details
- Generally double checking everything for typos etc
I've a feeling I'm doing something dumb AWS side (I'm totally new to AWS), is there something specific I need to apply to the S3 bucket Permissions, Policy etc? This is driving me mad, help much appreciated!
strace
to observe the system callss3fs
is making when you invoke it, and probably discover something useful from that.