Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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