Share Objects with Pre-Signed URLs

By default, objects in the IONOS S3 Object Storage are private and only the bucket owner has permission to access them. Only the bucket owner can generate a pre-signed URL for objects and grant time-bound permission to other users to access these objects. It is a secure and user-friendly way to share private objects stored in your Object Storage with other users.

This way, the objects are made publically available for users with the object's pre-signed URL; however, you could limit the period of access to the object.

Use cases

  • Pre-signed URLs are ideal for providing temporary access to a specific object without needing to change the object's permissions or share your credentials with other users.

  • Allows other users to upload objects directly to your S3 bucket without needing to provide them with access and secret keys.

You can generate a pre-signed URL to share objects through one of the following methods:

Web console

1. In the DCD, go to Menu > Storage > IONOS S3 Object Storage.

2. From the Buckets list, choose the bucket from which you want to share the objects. The list of objects in the bucket is listed.

3. Select the object to share and click Generate Pre-Signed URL.

4. Enter the expiration time for the URL and choose whether the specified time refers to seconds, minutes, hours, or days.

5. Click Generate.

Generate pre-signed URL

6. Copy the generated pre-signed URL and share it with users that require this object access.

Result: The pre-signed URL for the selected object is generated successfully and copied to the clipboard. The URL is valid for the period defined during URL generation.

Command-line tool

Prerequisites:

Generate a pre-signed URL for my-object.txt`` in the my-bucket` bucket which will expire in 3600 seconds:

aws s3 presign s3://MY-BUCKET/my-object.txt --expires-in 3600 --endpoint-url https://s3-eu-central-2.ionoscloud.com

API and SDKs

The creation of pre-signed URLs does not involve a dedicated API by design. These URLs are generated locally via a signing algorithm using your credentials without relying on the S3 API. To create these URLs, use the appropriate SDK for your programming language.

IONOS S3 Object Storage is S3-compatible, allowing seamless integration with any SDK supporting the S3 protocol for tasks like generating pre-signed URLs. For generating pre-signed URLs using SDKs, see the following AWS methods:

Last updated

Revision created

fixed broken links