@aws/aws-domain-redirector
TypeScript icon, indicating that this package has built-in type declarations

0.1.24 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @aws/aws-domain-redirector

Weekly Downloads

0

Version

0.1.24

License

Apache-2.0

Unpacked Size

81.1 kB

Total Files

13

Last publish

Collaborators

  • osa-publish
  • mattsb42-aws