Sign In
Sign In

A Presigned URL in S3 allows temporary access to an object in storage without the need to change the object's access permissions. It is a convenient tool for downloading files by third-party users. In this article, we will look at how to create a Presigned URL in two ways: in the Hostman control panel or via AWS CLI.

In the Hostman Control Panel

Presigned URL generation is only available for private buckets. To generate a Presigned URL:

  1. Go to the S3 storage section and click on the bucket.
  2. In the Objects tab, hover over the object and click the File link button.

0a12ff53 9cb4 4b16 A2fa 1166627866cc

The link will be copied to the clipboard and will remain active for 60 minutes. After this time, an attempt to follow the link will return a 403 error. 

Via AWS CLI

You can create a Presigned URL using AWS CLI with the following command:

aws s3 presign s3://<bucket>/<object> --expires-in 60 --endpoint-url https://s3.hostman.com

The --expires-in parameter is optional. It defines how long the object will be available via the link (in seconds). If the parameter is not specified, the object will be available for 3600 seconds (1 hour).

Was this page helpful?
Updated on 24 March 2025

Do you have questions,
comments, or concerns?

Our professionals are available to assist you at any moment,
whether you need help or are just unsure of where to start.
Email us
Hostman's Support