Presigned URL
cegedim.cloud Object Storage Service support presigned URLs to grant access to objects without needing credentials.
Presigned URLs are used to provide short-term access to a private object in your S3 bucket. They work by appending an Access_Key
, expiration time, and Sigv4 signature as query parameters to the S3 object.
Also, presigned URLs allow you to grant someone right to upload a specific object in your Bucket.
There are two common use cases when you may want to use them:
Simple, occasional sharing of private files
Frequent, programmatic access to view an object in an application
Frequent, programmatic access to upload an object through an application
Generating a Presigned URL (download)
In this example, the generated URL have an expiration of 10 minutes. After this time, the object will no longer be accessible.
Generating a Presigned URL (upload)
If an object with the same key already exists in the bucket as specified in the presigned URL, the existing object will be overridden.
You can use tool like curl
to upload your object to your bucket, using the URL generated previously:
Last updated