Skip to content

Small construct to help manage split-horizon DNS configs in AWS Route53

License

Notifications You must be signed in to change notification settings

jetbridge/aws-cdk-split-horizon-dns

 
 

Repository files navigation

AWS CDK Split Horizon DNS Construct

Small construct to help manage split-horizon DNS configs in AWS Route53

npm version

View on Construct Hub

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on deploying the project on a live system.

See the API Doc for extended details Also see unit tests for extended usage details.

npm install aws-cdk-split-horizon-dns Then in your code:

import { SplitHorizonDns, AliasTarget } from 'aws-cdk-split-horizon-dns'

const firstTarget: AliasTarget = {
  target: ['8.8.8.8'],
  private: true,
};

const bucketWebsite = new s3.Bucket(stack, 'BucketWebsite', {
  bucketName: exampleDomain, // www.example.com
  publicReadAccess: true,
  websiteIndexDocument: 'index.html',
});

const constructTarget: AliasTarget = {
  target: new targets.BucketWebsiteTarget(bucketWebsite),
  public: true,
};

new SplitHorizonDns(scope, 'MyDNS', {
  zoneName: 'example.com',
  privateZoneVpcs: [vpc],
  targets: [constructTarget, firstTarget],
})

Prerequisites

Requirements for the software and other tools to build, test and push

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use Semantic Versioning for versioning. For the versions available, see the tags on this repository.

Authors

  • Billie Thompson - Provided README Template - PurpleBooth
  • Dakota Lewallen - Initial development - IamFlowz

See also the list of contributors who participated in this project.

License

Apache. See LICENSE

Acknowledgments

About

Small construct to help manage split-horizon DNS configs in AWS Route53

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • JavaScript 3.7%