hw-cookbooks/s3fs-fuse

FEATURE REQUEST: Separate Mount Keys

Opened this issue · 0 comments

Allow separate keys for each mount point. s3fs allows specifying keys for each separate mount with this syntax in the .passwd-s3fs file:
bucketName:accessKeyId:secretAccessKey
( From the wiki: https://github.com/s3fs-fuse/s3fs-fuse/wiki/Fuse-Over-Amazon )

This could be implemented and configured with a change to the attributes such as:

override_attributes(
  's3fs-fuse' => {
    :s3_key => 'key',
    :s3_secret => 'secret',
    :mounts => [
      {:bucket => 'my-bucket', :path => '/mount/path', :tmp_store => '/tmp/cache', :key => 'mount-specific-key', :secret => 'mount-specific-secret'}
    ],
    :bluepill => true,
    :maxmemory => 50
  }
)

Any mounts that do not specify their own key and secret could fall back to using the global key and secret (if specified).