https://github.com/zxkane/serverless-domain-redirect
Serverless domain redirect on AWS.
https://github.com/zxkane/serverless-domain-redirect
aws aws-cdk aws-cloudfront aws-lambda aws-s3 serverless typescript
Last synced: 4 months ago
JSON representation
Serverless domain redirect on AWS.
- Host: GitHub
- URL: https://github.com/zxkane/serverless-domain-redirect
- Owner: zxkane
- Created: 2019-08-25T15:21:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T23:57:31.000Z (over 2 years ago)
- Last Synced: 2025-02-02T02:43:06.613Z (5 months ago)
- Topics: aws, aws-cdk, aws-cloudfront, aws-lambda, aws-s3, serverless, typescript
- Language: HTML
- Homepage: https://kane.mx/posts/effective-cloud-computing/serverless-domain-redirect/
- Size: 172 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Serverless Domain Redirect
Create a serverless stack for implementing domain redirect on AWS without provisioning any machine.## Prerequsistes
- Create a public hosted zone in Route 53 for your domain.
## Use AWS S3 and CloudFront for domain redirect### How to deploy the Stack
```shell
cdk deploy -c hostedZone=aws.kane.mx -c targetHost=aws.kane.mx -c redirectHost=aws.amazon.com
```## Use AWS Lambda and API Gateway for domain redirect requests
### How to deploy the Stack
```shell
cdk deploy -c hostedZone=aws.kane.mx -c targetHost=lambda.aws.kane.mx -c mode=lambda
```