Access S3 buckets with RClone
You can access the contents of your S3 bucket(s) inside your Nuvolos applications using the RClone add-on. The steps required to set up your access are:
Create AWS Access key for your user
Create and attach AWS policy to enable access for your user to the S3 bucket(s)
Enable RClone add-on and create config file
Set up Nuvolos secrets
Create AWS Access key
Follow the AWS documentation to generate a new access key for your user. You'll need the generated access key and secret key in step 4.
For optimal security, we suggest to create a new user for accessing your buckets, which should have only the privileges outlined below.
Create and attach AWS policy
You need to grant access to the user corresponding to the access key to the S3 buckets that you want to use on Nuvolos. There are 2 common scenarios:
Grant access to multiple S3 buckets
In this case, you want to access multiple buckets in your Nuvolos application at the same time. Below is an identity-based policy template that grants the required privileges for two buckets called BUCKET_NAME_1
and BUCKET_NAME_2
:
Note that the connector needs the s3:ListAllMyBuckets action to list all buckets. If you don't explicitly allow the other operations inside the bucket, the connector will not be able to browse their contents.
Grant access to single S3 bucket
In this case, you want to access a single bucket in your Nuvolos application. Below is an identity-based policy template that grants the required privileges for a bucket called BUCKET_NAME
:
Attach either policy to your user according to AWS documentation.
Enable RClone add-on and create config file
You need to enable the RClone add-on for every application separately where you want the S3 buckets mounted. You also need to have the following configuration file at ~/.config/rclone/rclone.conf
in the apps where you need mounting:
Since HOME areas are the same for all applications in an instance, you only need to create rclone.conf
per instance
Set up Nuvolos secrets
You need to add your AWS access key to the Nuvolos secret store, under the following names:
Mount a single S3 bucket
If you have followed grant access to single S3 bucket to set up your policy, you'll need to tell the RClone add-on to mount that particular bucket only. This can be done by setting the following secret or environment variable:
After restarting your application, your AWS bucket(s) will be accesible under /rclone
on the applications file system.
Last updated