The Web URL Generator allows you to easily generate web URLs for your files.
You can use this tool to create links for multiple files, an entire folder, or even an entire bucket.
Various options can be applied to the generated links, such as choosing HTTP or HTTPS connections,
setting time-limited URLs based on a specific date or duration, using a custom host name (if you have a
corresponding CNAME for your bucket), or shortening the URLs with various shortening services.
Select one or multiple files or folder(s) and click Files, Generate Web URL(s).
Select the files you want to generate URLs for and click Files, Generate Web URLs.
If you would like to generate URLs for all files inside a bucket, select the bucket and click
Buckets, Generate Web URLs.
The Web URL Generator dialog will appear:
The Web URL Generator dialog
Web URLs are generated automatically. You can tick the Use secure transfer (HTTPS) checkbox
if you want your files to be downloaded over an encrypted TLS channel.
You can copy the resulting URLs to the clipboard by clicking the corresponding button and then close the dialog.
Path-Style and Virtual-Hosted Style URLs
S3 currently supports two different addressing models:
For the cases described above, S3 Browser generates path-style URLs. For all other cases, virtual-hosted style URLs are produced.
Time-Limited URLs
Amazon S3 provides a way to pre-sign a URL to make it available for a limited period of time.
A possible use case for a pre-signed URL is granting temporary access to a file. For example,
you can generate a time-limited URL to share a file with someone or use it with command-line
tools like wget or curl to download a file.
Pre-signed URLs are generated using your AWS credentials and are valid for a limited time.
To Generate a Time-Limited URL
Select one or multiple files or folders and click Files, Generate Web URL(s). If you
want to generate URLs for all files in a bucket, select the bucket and click
Buckets, Generate Web URLs.
The Web URL Generator dialog will open:
Time-limited Web URLs generation
The following expiration options are available:
URL should expire after defined number of minutes - specify the link validity duration in minutes.
URL should expire on exact date - choose the exact date and time when the link becomes invalid.
Configure the expiration by specifying the link validity duration in minutes or choosing the
exact date and time when the link becomes invalid.
Important notice: A pre-signed URL can be valid for a maximum of seven days because the
signing key used for signature calculation is valid for up to seven days.
This is a limitation of Signature V4
(see the X-Amz-Expires query string parameter description).
Signature V2, which allowed longer periods,
has been deprecated by AWS.
Web URLs are generated automatically when you modify the options. You can also shorten the resulting URLs.
You can copy the resulting URLs to the clipboard by clicking the corresponding button and then close the dialog.
Custom Host Names
If you use a CNAME to map your host name to a virtual-hosted S3 URL, you may find it useful
to specify a custom host name for your URLs.
Check out
this article
to learn more about customizing Amazon S3 URLs with CNAMEs.
For example, if you use a CNAME to map images.yourwebsite.com
to images.yourwebsite.com.s3.us-east-1.amazonaws.com, you can specify the custom host name
in the corresponding text box as shown in the screenshot below. This will ensure URLs are generated using the custom host name.
How to set a custom host name for Web URLs
Another way to set a custom host name is to choose the Use bucket name as host name option. This can be
useful if your bucket name matches the custom host name (which is required to configure the CNAME).
How to set a custom host name for Web URLs
If you want to generate Web URLs for files served via CloudFront, you can choose the
Use CloudFront domain name as host name option, as shown in the picture below. This option is available
if a corresponding distribution is found (i.e., a distribution with the bucket as an origin).
You may need permissions to perform the cloudfront:ListDistributions call to detect this.
How to set a CloudFront domain as a custom host name for Web URLs
URL Shortening
URLs to files stored on Amazon S3 are often quite long, especially when they are time-limited.
You can use URL shortening services
to convert your long URL into a shorter equivalent.
S3 Browser currently supports the following URL shortening services:
TinyURL - the first notable URL shortening service.
"Amazon Web Services", "AWS", "Amazon S3", "Amazon Simple Storage Service", "Amazon CloudFront", "CloudFront",
the "Powered by Amazon Web Services" logo are trademarks of Amazon.com, Inc. or its affiliates in the US
and/or other countries.