@aws/aws-domain-redirector
v0.1.24
Published
AWS CDK construct to redirect one domain to another.
Readme
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
Redirectorinstance to deploy. - An Amazon Virtual Private Cloud (Amazon VPC).
This Amazon VPC does not need any special configuration,
but resources that
Redirectorcreates need a VPC to exist. To avoid stacks with multipleRedirectorinstances creating many Amazon VPCs,Redirectordoes not create its own Amazon VPCs.- NOTE: If you only use this VPC for
Redirector, you should setnatGatewaysto0to avoid unnecessary costs.
- NOTE: If you only use this VPC for
- RedirectOptions
that define what the
Redirectorshould redirect requests to.
Further Reading
- To see how to use
Redirectorin practice, see How to Use. - For details on how to call
Redirector, see the API Reference. - For more information about how
Redirectorworks, see Goals and Design.
Security
See CONTRIBUTING for more information.
License
This project is licensed under the Apache-2.0 License.
