https://github.com/kirkstrobeck/redirector
Handle redirects with AWS API Gateway and Lambdas
https://github.com/kirkstrobeck/redirector
api-gateway aws http-redirect s3 serverless
Last synced: 3 months ago
JSON representation
Handle redirects with AWS API Gateway and Lambdas
- Host: GitHub
- URL: https://github.com/kirkstrobeck/redirector
- Owner: kirkstrobeck
- License: apache-2.0
- Created: 2018-10-29T01:38:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-29T15:08:50.000Z (over 6 years ago)
- Last Synced: 2025-01-16T08:35:04.308Z (4 months ago)
- Topics: api-gateway, aws, http-redirect, s3, serverless
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Redirector
Handle redirects with AWS API Gateway and Lambdas
```sh
# install deps
yarn# test locally -- update test/* files to test
yarn invoke-local# deploy
# IMPORTANT: change bucket name in serverless.yml first
yarn deploy# create json
cp test/redirects.json redirects.json# get aws on your command line
brew install awscli# upload to your new s3 bucket
aws s3 cp redirects.json s3://redirector-111222333 # change name# invoke deployed with test payload
yarn invoke# check logs
yarn logs
```