Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
/ pygmy Public archive

Simple AWS Based Serverless URL Shortener

License

Notifications You must be signed in to change notification settings

alechenthorne/pygmy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pygmy URL Shortener

Pygmy is an simple AWS serverless implementation of a url shortener. It deploys an API and creates a custom domain name based on a domain in Route 53. It creates an ACM certificate, which requires a manual DNS validation in the stack creation. The output is a Cloudfront endpoint, which can be added as a DNS record in Route 53.

To use the endpoint takes the form:

POST {"url": URL_TO_SHORTEN}

URL_TO_SHORTEN is a string. It then returns a url of the form: https://BASE_URL/URL_ID, where URL_ID is an automatically generated slug.

In the stack the option of RootUrl is required, this is used as a redirect from a GET request with no slug to a potential frontend endpoint to create new apis.

Limitations:

Due to ACM and API Gateway distributions this must be deployed in the us-east-1 region. There are are no restrictions on creating or sharing this API, so avoid using it for sensitive data.

About

Simple AWS Based Serverless URL Shortener

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages