I have followed WhiteBoard Coder: Install and set up s3fs in Ubuntu 16.04 to mount an s3 bucket to mount an S3 bucket on Ubuntu server.
Now what I want to do is to mount a second bucket on the same Ubuntu server... I have 2 different users, for each of these buckets, I don't know how to configure their passwords.
Previously I had to put the access-key:secrect-key
in /etc/passwd-s3fs
file, but now that I have 2 different set of tokens, I am not sure what to do?
some background: I am working on an e-commerce solution... I am working on an integration system with different clients who send their product info to our e-commerce via FTP.
As an example, client-1 is a car dealer who uploads hundreds of photos via FTP, to our FTP server... we have created an S3 bucket for client-1, mounted the bucket using S3FS and the photos directly go to the bucket...
Now I am getting data from a different car dealer, and due to security reasons, we want separate buckets and credentials for each clients, that's why I want to configure S3FS to work with separate Access-key fies.
s3fs accepts a flag to override the default password path:
-o passwd_file (default="")
specify the path to the password file, which which takes precedence over the password in $HOME/.passwd-s3fs and /etc/passwd-s3fs
Thus you should create two password files and provide a different path to each s3fs instance.