Connecting CBCloudDrive to Other S3 Providers


Requirements: CBFSCloud

This article explains how to configure CBCloudDrive to connect to an S3-compatible object storage service in a generic manner. For a general overview of how the component works, see Getting Started with the CBCloudDrive Component.

Getting Started

To get started, set the ConnectionType property to ctS3 and set CacheDirectory to a valid, writable local directory path. After that, you can build a connection string using the below parameters.

Connection Parameters

Parameter Description
RemoteRoot The path to use as the root of the mounted drive. The first path segment must be the bucket name (e.g., /my-bucket).
Provider Must be set to CUSTOM.
URL The base endpoint URL for the S3-compatible service (e.g., https://s3.my-provider.com).
AccessKey The access key for authentication.
SecretKey The secret key for authentication.

If the URL contains a %region% token, it will be replaced with the value of the Region parameter at runtime.

Authentication

To connect using standard access keys, set the AccessKey and SecretKey connection parameters in the connection string as shown below.

drive.ConnectionType = CBCloudDriveConnectionTypes.ctS3; drive.ConnectionString = "RemoteRoot=/my-bucket;Provider=CUSTOM;URL=https://s3.my-provider.com;" + "AccessKey=MYACCESSKEY;SecretKey=MYSECRETKEY;";

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@callback.com.