Skip to content

Hetzner Storage

Robin Rodricks edited this page Jul 15, 2026 · 3 revisions

In order to use Hetzner storage you need to reference the FluentStorage.AWS package first. The provider wraps around the standard AWS SDK.

Connect to Hetzner

You can use the HetznerStorage factory class to connect to Hetzner Object Storage storage servers (S3 compatible).

IStore store = HetznerStorage.FromCredentials(
    accessKeyId, secretAccessKey, bucketName, region);

Connect using Connection Strings

To create with a connection string, first reference the module:

AwsS3Storage.Use();

Then construct using the following format:

IStore store = StorageFactory.FromConnectionString("hetzner://keyId=...;key=...;bucket=...;region=...");

where:

  • keyId is (optional) access key ID.
  • key is (optional) secret access key.
  • bucket is bucket name.
  • region is the Storage region (e.g. fsn1, nbg1, hel1)

Perform storage operations

Use our simple polycloud API to perform file and object manipulation operations.

AWS CLI Profile Support

If you already have credentials in the local credentials file generated by AWS CLI, you can also use them to connect to a bucket with FluentStorage. Look here for more details.

Native operations

Call the IStore.GetClient() method to return the native SDK client and perform any native operations.

Clone this wiki locally