-
-
Notifications
You must be signed in to change notification settings - Fork 72
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.
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);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)
Use our simple polycloud API to perform file and object manipulation operations.
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.
Call the IStore.GetClient() method to return the native SDK client and perform any native operations.