A Case for Shortening your AWS Pre-Signed URLs

A simple guide to help you build your own URL shorter

Timothy Mugayi
The Startup

--

Long AWS Presigned URL

URL Shortening is a technique in which a URL, for example www.yoururl.com/cast_your_vote_now_for_this _incredible_deal

is shortened in length to something like http://bit.ly/2V2EPPZ.

In the event, the shortened URL is clicked, the user is redirected to the intended page. A shorter URL may be desired in various instances on platforms that limit the amount of content (characters) you can use such as SMS, or on social media platforms, such as Twitter, that have limited real estate where it's vital to make your characters count in order to convey the intended message across. Shortened URLs are also much more manageable and are easy for most to remember the longer the URL the more likely you are to forget it, and the impact diminishes as the number of characters increases.

Now that we understand what shortened Urls let's circle back and take a look at the lengthy AWS signed URLs. There is no doubt that these signed URLs were not intended to be used for sharing resources directly but were designed to be consumed and used programmatically either as embedded links or via code.

https://djangosimplified.s3.amazonaws.com/downloads/whitepaper.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Cre

--

--

Timothy Mugayi
The Startup

Tech Evangelist, Instructor, Polyglot Developer with a passion for innovative technology, Father & Health Activist