Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b2c7255f20
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.789 kb
require 'rubygems'
require 'virtualmonkey'
@sdb = Fog::AWS::SimpleDB.new(:aws_access_key_id => Fog.credentials[:aws_access_key_id_test], :aws_secret_access_key => Fog.credentials[:aws_secret_access_key_test])
@domain="virtualmonkey_awsdns"
29.times do |num|
item_name="awsdns#{num}"
attributes=
{"SLAVE_DB_DNSID"=>["text:Z3AINKOIEY1X3X:testslave#{num}.aws.rightscale.com"],
"MASTER_DB_DNSID"=>["text:Z3AINKOIEY1X3X:test#{num}.aws.rightscale.com"],
"DNS_USER"=>["cred:AWS_ACCESS_KEY_ID_TEST"],
"DNS_PASSWORD"=>["cred:AWS_SECRET_ACCESS_KEY_TEST"],
"DNS_PROVIDER"=>["text:AwsDNS"],
"owner"=>["available"],
"MASTER_DB_DNSNAME"=>["text:test#{num}.aws.rightscale.com"]}
response = @sdb.put_attributes(@domain, item_name, attributes)
end
Jump to Line
Something went wrong with that request. Please try again.