aws-route53-alb
| Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
| Language | Package |
|---|---|
|
|
|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an Amazon Route53 Hosted Zone routing to an Application Load Balancer
Here is a minimal deployable pattern definition:
Example
Pattern Construct Props
This construct cannot create a new Public Hosted Zone, if you are creating a public API you must supply an existing Public Hosted Zone that will be reconfigured with a new Alias record. Public Hosted Zones are configured with public domain names and are not well suited to be launched and torn down dynamically, so this construct will only reconfigure existing Public Hosted Zones.
This construct can create Private Hosted Zones. If you want a Private Hosted Zone, then you can either provide an existing Private Hosted Zone or a privateHostedZoneProps value with at least the Domain Name defined.
| Name | Type | Description |
|---|---|---|
|
privateHostedZoneProps? |
Optional custom properties for a new Private Hosted Zone. Cannot be specified for a public API. Cannot specify a VPC, it will use the VPC in existingVpc or the VPC created by the construct. Providing both this and existingHostedZoneInterfacecauses an error. |
|
|
existingHostedZoneInterface? |
Existing Public or Private Hosted Zone (type must match publicApi setting). Specifying both this and privateHostedZoneProps causes an error. If this is a Private Hosted Zone, the associated VPC must be provided as the existingVpc property |
|
|
loadBalancerProps? |
Optional custom properties for a new loadBalancer. Providing both this and existingLoadBalancer causes an error. This cannot specify a VPC, it will use the VPC in existingVpc or the VPC created by the construct. |
|
|
existingLoadBalancerObj? |
Existing Application Load Balancer to incorporate into the construct architecture. Providing both this and loadBalancerProps causes an error. The VPC containing this loadBalancer must match the VPC provided in existingVpc. |
|
|
vpcProps? |
Optional custom properties for a VPC the construct will create. This VPC will be used by the new ALB and any Private Hosted Zone the construct creates (that’s why loadBalancerProps and privateHostedZoneProps can’t include a VPC). Providing both this and existingVpc causes an error. |
|
|
existingVpc? |
An existing VPC in which to deploy the construct. Providing both this and vpcProps causes an error. If the client provides an existing load balancer and/or existing Private Hosted Zone, those constructs must exist in this VPC. |
|
|
logAlbAccessLogs? |
boolean |
Whether to turn on Access Logs for the Application Load Balancer. Uses an S3 bucket with associated storage costs.Enabling Access Logging is a best practice. default - true |
|
albLoggingBucketProps? |
Optional properties to customize the bucket used to store the ALB Access Logs. Supplying this and setting logAlbAccessLogs to false is an error. @default - none |
Pattern Properties
| Name | Type | Description |
|---|---|---|
|
hostedZone |
The hosted zone used by the construct (whether created by the construct or providedb by the client) |
|
|
vpc |
The VPC used by the construct (whether created by the construct or providedb by the client) |
|
|
loadBalancer |
The Load Balancer used by the construct (whether created by the construct or providedb by the client) |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Amazon Route53
-
Adds an ALIAS record to the new or provided Hosted Zone that routes to the construct’s ALB
Application Load Balancer
-
Creates an Application Load Balancer with no Listener or target. The construct can incorporate an existing, fully configured ALB if provided.
Architecture
Github
Go to the Github repo