https://github.com/gkzz/url_shortener_sample
https://github.com/gkzz/url_shortener_sample
aws aws-cloudformation aws-lambda aws-s3 yaml
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gkzz/url_shortener_sample
- Owner: gkzz
- Created: 2019-09-14T14:36:20.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-15T13:52:30.000Z (almost 7 years ago)
- Last Synced: 2025-03-05T17:56:33.342Z (over 1 year ago)
- Topics: aws, aws-cloudformation, aws-lambda, aws-s3, yaml
- Size: 2.83 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url_shortener_sample
This repository contains all the code examples from the contents as bellow:
[Build a Serverless, Private URL Shortener](https://aws.amazon.com/blogs/compute/build-a-serverless-private-url-shortener/)
# Demo

# Table of Contents
- Technologies Used
- How to setup
- Notes
- Sources
# Technologies Used
## The followings are used by AWS CloudFormation
- AWS Lambda
- S3 bucket
- API Gateway
- CloudFront
# How to setup
- 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
- Upload [/url_shortener_sample/rl_shortener.yml](/url_shortener_sample/rl_shortener.yml)

- 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)

### Optional
- Enter a monitoring time parameter (e.g. 7)

## How to check if your S3BucketName is unique, or not
- 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"

# Notes
being prepared.
# Sources
[Build a Serverless, Private URL Shortener](https://aws.amazon.com/blogs/compute/build-a-serverless-private-url-shortener/)