pcorliss/ruby_route_53 — Issue #18: cant create CNAME in existing zone.
Author: willejs
Created: 2012-01-23 22:00:36+00:00
State: open

I wondered if anyone can help me, I am fairly new at ruby, and dont really understand how to specify the zone when creating a CNAME.

When using the example script to create a new zone, and create records with it it works fine. however, im not sure how to specify the zone when creating a CNAME record. the new_zone object is different, and im not sure how it works.

I am trying this, but it doesent work. what does it expect new_zone to be?

new_zone = 'abcd.net. /hostedzone/Z4W3K5G8FBG6R'

new_record = Route53::DNSRecord.new("cbs.abcd.net.","CNAME","3600",["abcd.net."],new_zone)
resp = new_record.create
how do I specify the zone? I try to do it with a string, but it fails...

/var/lib/gems/1.8/gems/route53-0.2.1/lib/route53.rb:364:in `create': undefined method `perform_actions' for "abcd.net. /hostedzone/Z4W3K5G8FBG6R":String (NoMethodError)
from ./cname.rb:12

thanks in advance!