Skip to main content

Route53 domain updates for humans.

Installation

With pip:

$ pip install roadtrip

With setuptools:

$ easy_install roadtrip

Requirements

Roadtrip requires Python 2.7 and leans heavily on the shoulders of Boto 2.25.0+.

Using

You can use roadtrip to update a round-robin A record, adding a new value if it doesn’t already exist:

$ roadtrip --type A --zone example.com --name mycluster.example.com --value 1.2.3.4 --add

There is also a compact syntax for each option:

$ roadtrip -t A -z example.com -n mycluster.example.com -v 1.2.3.4 -a

You can also remove a value from a list:

$ roadtrip --type A --zone example.com --name mycluster.example.com --value 1.2.3.4 --delete

You can also specify multiple values to be added, removed, or overwritten (which will discard all previous values):

$ roadtrip --type A --zone example.com --name mycluster.example.com --value 1.2.3.4 --value 1.2.3.5 --overwrite

You can also get help:

usage: roadtrip [-h] --type {A,AAAA,CNAME,MX,NS,PTR,SOA,SPF,SRV,TXT} --zone
                ZONE --name NAME --value VALUE [--ttl TTL]
                (--add | --delete | --overwrite) [--access-key ACCESS_KEY]
                [--secret-key SECRET_KEY] [--verbose]

Update a Route53 record, adding or removing values.

optional arguments:
  -h, --help            show this help message and exit
  --type {A,AAAA,CNAME,MX,NS,PTR,SOA,SPF,SRV,TXT}, -t {A,AAAA,CNAME,MX,NS,PTR,SOA,SPF,SRV,TXT}
                        The type of record to update.
  --zone ZONE, -z ZONE  The domain name or zone ID.
  --name NAME, -n NAME  The name to update.
  --value VALUE, -v VALUE
                        The data to add or remove. This argument can be used
                        multiple times to add or remove multiple values.
  --ttl TTL, -l TTL     Non-default TTL value.
  --add, -a             Add the value.
  --delete, -d          Remove the value.
  --overwrite, -o       Overwrite all existing values with those provided.
  --access-key ACCESS_KEY, -k ACCESS_KEY
                        Your AWS access key. Will override the
                        AWS_ACCESS_KEY_ID environment variable.
  --secret-key SECRET_KEY, -s SECRET_KEY
                        Your AWS secret key. Will override the
                        AWS_SECRET_ACCESS_KEY envionrment variable.
  --verbose, -vv        Verbose output.

You can set a non-default TTL value with --ttl and enable verbose output with --verbose.

Roadtrip will use the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables if they are set. You can provide these values yourself or override the environment variables by providing --access-key and --secret-key.

Under the hood

Roadtrip will do its best not to add an entry that already exists or delete an entry that doesn’t. It uses UPSERT to update the values based on the values that exist when you call it.

Release files for roadtrip 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roadtrip 0.2.4
File Size Uploaded
roadtrip-0.2.4.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for roadtrip 0.2.4
File Interpreter ABI Platform
roadtrip-0.2.4-cp27-none-macosx_10_9_x86_64.whl CPython 2.7 none macOS 10.9+ x86-64 Details

Total release size:11.0 kB

Release files / roadtrip-0.2.4.tar.gz

Download URL roadtrip-0.2.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1153f265d0f05bfad4f618e71acdcdd2a7e026b05ad913c8b65aa6a3d2cd6cff
BLAKE2b-256 checksum
How to use checksums
987d0ae95045dc54cccbbd9d66629ef95997a72534754f6c5ffd5e9b35a084be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / roadtrip-0.2.4-cp27-none-macosx_10_9_x86_64.whl

Download URL roadtrip-0.2.4-cp27-none-macosx_10_9_x86_64.whl
Size 6.3 kB
Tags CPython 2.7 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
f970e250c8a8508a6af98058ee4edbe8fcccf1aaf68c7aec3357af579da6868d
BLAKE2b-256 checksum
How to use checksums
a507d099c05e833d1bbbf7d057c328f86cda247a06bd2cd4fb5c88d9783e144d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page