This repository contains all the code examples from the contents as bellow: Build a Serverless, Private URL Shortener
- Technologies Used
- How to setup
- Notes
- Sources
- AWS Lambda
- S3 bucket
- API Gateway
- CloudFront
- git clone https://github.com/gkzz/url_shortener_sample.git
- Login AWS console, and select CloudFormation
- Press "Create stack" button
-
Change AWS region to that of the appropriate
- Enter the following parameters:
- Stack name: "URLShortener"
- S3BucketName: ${YOUR_UNIQUE_NAME}
- URLExpiration: 7
- Press the check button of "I acknowledge that AWS CloudFormation might create IAM resources"
- Status is "CREATE_COMPLETE" on Events page (It takes 20 to 30 mins to complete it)
- Congratulations on the launch of your URL Shortener! (ConnectURL is that of your service)
- Enter a monitoring time parameter (e.g. 7)
- Select S3 bucket
- Enter your S3BucketName
- If it is not unique, this following error message is displayed: "Bucket name must not end with dash or period"
being prepared.









