goofys
goofys
Getting started
- Create a service account.
- Assign the service account the roles required for your project. For more information about roles, see the Identity and Access Management documentation.
- Create a static access key.
Note
A service account is only allowed to view a list of buckets in the folder it was created in.
A service account can perform actions with objects in buckets that are created in folders different from the service account folder. To enable this, assign the service account roles for the appropriate folder or its bucket.
Installing
To install goofys
, follow the guide
Setup
goofys
uses the secret key from the AWS CLI settings in the .aws/credentials
file. You can also put the key in the AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables.
Mounting a bucket
-
Select the folder where you want to mount a bucket and make sure you have permissions to perform the mounting operation.
-
For one-time bucket mounting, run the command:
goofys --endpoint=https://storage.yandexcloud.net <bucket_name> <mount_point>
To set a bucket to mount at system startup, open the /etc/fstab
file and add the following line to it:
goofys#<bucket_name> <mount_point> fuse _netdev,allow_other,--file-mode=0666,--dir-mode=0777,--endpoint=https://storage.yandexcloud.net 0 0