Python package to manage over 100 weighted records in AWS Route53.
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: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
from route53weightedrecords import Route53Manager # Create the manager (replace the hosted zone id and url with your own) manager = Route53Manager("my-hosted-zone-id", "my-cool-url.com.") # Create the record sets manager.create_record_sets(["192.168.1.1", "192.168.1.2", "192.168.1.3"]) # The DNS entries should now show up in your Route53 console the proper weights! # Delete the record sets manager.delete_record_sets(["192.168.1.1", "192.168.1.2", "192.168.1.3"])
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.
- Support up to 1,000,000 responses for a single url.
- Support weights when inserting reponses for a url.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size route53weightedrecords-0.4-py2.py3-none-any.whl (3.8 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
Hashes for route53weightedrecords-0.4-py2.py3-none-any.whl