An open API service indexing awesome lists of open source software.

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

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

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

how_to_setup1

- Change AWS region to that of the appropriate

- Upload [/url_shortener_sample/rl_shortener.yml](/url_shortener_sample/rl_shortener.yml)

how_to_setup2

- Enter the following parameters:
- Stack name: "URLShortener"
- S3BucketName: ${YOUR_UNIQUE_NAME}
- URLExpiration: 7

how_to_setup4

- Press the check button of "I acknowledge that AWS CloudFormation might create IAM resources"

how_to_setup5

- Status is "CREATE_COMPLETE" on Events page
(It takes 20 to 30 mins to complete it)

completed

- Congratulations on the launch of your URL Shortener!
(ConnectURL is that of your service)
connecturl

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

## How to check if your S3BucketName is unique, or not
- Select S3 bucket
- Enter your S3BucketName

s3

- If it is not unique, this following error message is displayed:
"Bucket name must not end with dash or period"

check_s3_name

# Notes
being prepared.

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