Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 29 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T23:57:31.000Z (about 2 years ago)
- Last Synced: 2023-03-22T20:42:29.594Z (almost 2 years 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: 2
- Forks: 0
- 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
```