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 multipleRedirector
instances creating many Amazon VPCs,Redirector
does not create its own Amazon VPCs.- NOTE: If you only use this VPC for
Redirector
, you should setnatGateways
to0
to avoid unnecessary costs.
- NOTE: If you only use this VPC for
- RedirectOptions
that define what the
Redirector
should redirect requests to.
- To see how to use
Redirector
in practice, see How to Use. - For details on how to call
Redirector
, see the API Reference. - For more information about how
Redirector
works, see Goals and Design.
See CONTRIBUTING for more information.
This project is licensed under the Apache-2.0 License.