Skip to content

Commit

Permalink
document route53 updating a record
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram Noordzij committed May 5, 2015
1 parent 8b65a6c commit 280db57
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/source/route53_tut.rst
Expand Up @@ -85,6 +85,20 @@ You can call the API again and ask for the current status as follows:
When the status has changed to *INSYNC*, the change has been propagated to
remote servers

Updating a record
-----------------

You can create, upsert or delete a single record like this

>>> zone = conn.get_zone("example.com.")
>>> change_set = ResourceRecordSets(conn, zone.id)
>>> changes1 = change_set("UPSERT", "www" + ".example.com", type="CNAME", ttl=3600)
>>> changes1.add_value("webserver.example.com")
>>> change_set.commit()

In this example we create or update, depending on the existence of the record, the
CNAME www.example.com to webserver.example.com.

Working with Change Sets
-----------------------

Expand Down

0 comments on commit 280db57

Please sign in to comment.