pcorliss / ruby_route_53

Ruby gem and command line tool for Amazon's Route 53 service.
blog.50projects.com
GNU General Public License v3.0
172 stars 32 forks source link

Allow removal of records without prompt #6

Closed mconigliaro closed 13 years ago

mconigliaro commented 13 years ago

I was disappointed to discover that this generates a prompt:

route53 --zone example.com. -r --name test.example.com. --type CNAME

I expected that no prompt would be necessary, since I specified the name and type of record to remove. That prompt makes it difficult to use your route53 script in automation scripts (e.g. if you wanted to allow all of your EC2 instances to update their own DNS records).

mconigliaro commented 13 years ago

Looks like the same thing occurs with -g when you have more than one record in a zone. So at this point, it seems that no automation is possible.

pcorliss commented 13 years ago

That's a bummer. I just started a new job so time is tight right now. But I'll take a crack at it this weekend and see what I can get going.

mconigliaro commented 13 years ago

That would be awesome! I've already written gems for Dynect and UltraDNS. so I was hoping I wouldn't have to spend any time writing another one for the EC2 API. =)

pcorliss commented 13 years ago

The latest version is up on github and on rubygems. You should be able to perform delete and change operations without a prompt. Thanks for using the gem and reporting the issue.

mconigliaro commented 13 years ago

Great, thanks!