Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

amazon-ospo/aws-domain-redirector

AWS Domain Redirector

The AWS Domain Redirector construct builds the necessary resources to redirect all requests to one domain to a target domain of your choice. You can choose to redirect all requests to a static location or redirect to a dynamic location based on the request.

To create a Redirector, you need to provide:

  • An Amazon Route 53 Hosted Zone for the domain you want to redirect. This has to be created first because Route 53 needs to control the public domain in order for a Redirector instance to deploy.
  • An Amazon Virtual Private Cloud (Amazon VPC). This Amazon VPC does not need any special configuration, but resources that Redirector creates need a VPC to exist. To avoid stacks with multiple Redirector instances creating many Amazon VPCs, Redirector does not create its own Amazon VPCs.
    • NOTE: If you only use this VPC for Redirector, you should set natGateways to 0 to avoid unnecessary costs.
  • RedirectOptions that define what the Redirector should redirect requests to.

Further Reading

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.