Skip to main content

Python package to manage over 100 weighted records in AWS Route53.

Project description


Python package to manage over 100 weighted records under one url in AWS Route53.

The Problem This Package Solves

If you want to distribute requests to more than 100 endpoints behind a single url in Route53, you have to manage a tree-like structure of records since Route53 only supports up to 100 alternative responses for a single record.

This library provides a simple create/delete interface for your url, and manages the tree structure behind the scenes.


Configure AWS Credentials

First make sure boto has the correct access previleges to modify your Route53 records. The permssions can be configured through any of the means listed here:

Code Examples

from route53weightedrecords import Route53Manager

# Create the manager (replace the hosted zone id and url with your own)
manager = Route53Manager("my-hosted-zone-id", "")

# Create the record sets
manager.create_record_sets(["", "", ""])

# The DNS entries should now show up in your Route53 console the proper weights!

# Delete the record sets
manager.delete_record_sets(["", "", ""])


This package assigns all responses the same weight so requests to the url will be equally balanced between the ips you add. You cannot configure the weight of specific responses at this time.

This package only supports up to 10,000 weigted records for a given url, not the full 1,000,000 records that AWS allows.

The Route53 has a rate limit of 5 requests per second, so make sure to adhere to that limit.

Future Work

  • Support up to 1,000,000 responses for a single url.
  • Support weights when inserting reponses for a url.

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

route53weightedrecords-0.4-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded py2 py3

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