Skip to main content

An AWS CDK library that adds functionality for targetting additional resources in Route53

Project description

Additional Route53 Targets for AWS CDK

build

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 the aws-cdk doesn't implement a resource interface (ILoadBalancer) or other typical L2 concepts (abstract base class, "imports" using from methods) for constructs the ClassicLoadBalancerTarget requires a LoadBalancer outright. Since LoadBalancer is 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',
  })),
});

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file renovosolutions.aws-cdk-route53targets-0.0.131.tar.gz.

File metadata

File hashes

Hashes for renovosolutions.aws-cdk-route53targets-0.0.131.tar.gz
Algorithm Hash digest
SHA256 435bbd953b638a8b06572b2665f4528b1339c0fd0b22b57d1827b35c739e37a0
MD5 d3a324238193dc3aa3e49ca2bd4700b8
BLAKE2b-256 fcd92db2cd621bef5e93c2d890d5f3bfedd35ecbcb1a13a897c610c1d587cf43

See more details on using hashes here.

File details

Details for the file renovosolutions.aws_cdk_route53targets-0.0.131-py3-none-any.whl.

File metadata

File hashes

Hashes for renovosolutions.aws_cdk_route53targets-0.0.131-py3-none-any.whl
Algorithm Hash digest
SHA256 d20132b06394fd104ba8c5fd0ae3960b53e2e3997929f74f46b08630a1129610
MD5 fff53f70844bb5ee708c676df8296533
BLAKE2b-256 dcaa7afd468ca64a348ec0ab9839705e0851d10ea8eaff194d5daaca3327b406

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page