Additional Route53 Targets for AWS CDK
This repo's intention is to add additional avenues for defining Route53 targets or adding targets that might not be available otherwise. See the (limited) feature list below:
Features
- Add a load balancer target using the load balancers attributes instead of the resource class
LoadBalancer. This is useful in cases where you need to add a Classic Load Balancer as a target, but the load balancer wasn't created in the same CDK app. Since the ELBv2 package in theaws-cdkdoesn't implement a resource interface (ILoadBalancer) or other typical L2 concepts (abstract base class, "imports" usingfrommethods) for constructs theClassicLoadBalancerTargetrequires aLoadBalanceroutright. SinceLoadBalanceris a concrete resource class we can't redefine something we want to target from another CDK app. So, this feature allows us to use data we know about the load balancer to set it as a target more directly.
Examples
const zone = new r53.HostedZone(stack, 'HostedZone', {
zoneName: 'example.com',
});
new r53.ARecord(stack, 'AliasRecord', {
zone,
recordName: 'publiclb.example.com',
target: r53.RecordTarget.fromAlias(new LoadBalancerTargetFromAttributes({
dnsName: 'publiclb-1234567890.us-east-1.elb.amazonaws.com',
hostedZoneId: 'A1AAAA0A79A41A',
})),
});
Metadata
Release files for renovosolutions.aws-cdk-route53targets 0.0.132
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| renovosolutions_aws_cdk_route53targets-0.0.132.tar.gz | 26.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| renovosolutions.aws_cdk_route53targets-0.0.132-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.2 kB
Release files / renovosolutions_aws_cdk_route53targets-0.0.132.tar.gz
| Download URL | renovosolutions_aws_cdk_route53targets-0.0.132.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
366c04c1c5607ea4e9fe75f5b134906e3f1800bf8656ad900652913a3a39acd8
|
|
BLAKE2b-256 checksum How to use checksums |
3127004700cdad589237b2332b9bd13f0a1329dcecb513399e0bdded2bee6ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / renovosolutions.aws_cdk_route53targets-0.0.132-py3-none-any.whl
| Download URL | renovosolutions.aws_cdk_route53targets-0.0.132-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8c9abb8bdbee1ea797923b084ae8332f540bd7c9672197f9182b11825e934b9
|
|
BLAKE2b-256 checksum How to use checksums |
5481a2e2a4ad72beec9a6671db97e98445fc516e368614dc6ad1de99865b3e15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|