pcorliss/ruby_route_53 — Issue #17: Impossible to update a zone apex A record to a regular A record
Author: davidljung
Created: 2011-12-02 22:35:40+00:00
State: open

Given a DNSRecord object that represents a zone apex virtual A record, it isn't possible to update it to be a regular A record (with IP address) using update:

record.update(nil,nil,nil,ip_address,nil,nil)

causes the error below, because passing nil for the zone_apez param of update() indicates no-change. There seems to be no way to set it to nil (if that is the appropriate value for non-apex virtual A records).

ERROR: Amazon returned an error for the request.
ERROR: RAW_XML: \
\\\Sender\\InvalidChangeBatch\\Tried to create an alias that targets resortsvacation.com., type A in zone Z3DZXE0Q79N41H, but that target was not found\\\edc17977-1d34-11e1-9388-b50d1a7693b8\\
ERROR: InvalidChangeBatch: Tried to create an alias that targets resortsvacation.com., type A in zone Z3DZXE0Q79N41H, but that target was not found
.
What now? You may have tried to delete a NS or SOA record. This error is safe to ignore if you're just trying to delete all records as part of a zone prior to deleting the zone. Or you may have tried to create a record that already exists. Otherwise please file a bug by sending a detailed bug ...