Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting CNAME to integer instead of string throws error #13

Open
kaspergrubbe opened this issue Apr 23, 2019 · 0 comments
Open

Setting CNAME to integer instead of string throws error #13

kaspergrubbe opened this issue Apr 23, 2019 · 0 comments

Comments

@kaspergrubbe
Copy link
Member

kaspergrubbe commented Apr 23, 2019

require 'sprinkle_dns'
require_relative 'test_perms'

client = SprinkleDNS::Route53Client.new(ACCESS_KEY_ID, SECRET_ACCESS_KEY)
sdns   = SprinkleDNS::Client.new(client)

sdns.entry("A", "beta.test.billetto.com", '88.80.188.143', 60, 'test.billetto.com')
sdns.entry("TXT", "test.test.billetto.com", Time.now.to_i, 60, 'test.billetto.com')

sdns.sprinkle!

Error:

Traceback (most recent call last):
	15: from example.rb:10:in `<main>'
	14: from /Users/kaspergrubbe/projects/sprinkle_dns/lib/sprinkle_dns/client.rb:72:in `sprinkle!'
	13: from /Users/kaspergrubbe/projects/sprinkle_dns/lib/sprinkle_dns/providers/route53_client.rb:65:in `change_hosted_zones'
	12: from /Users/kaspergrubbe/projects/sprinkle_dns/lib/sprinkle_dns/providers/route53_client.rb:65:in `each'
	11: from /Users/kaspergrubbe/projects/sprinkle_dns/lib/sprinkle_dns/providers/route53_client.rb:67:in `block in change_hosted_zones'
	10: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-route53-1.21.0/lib/aws-sdk-route53/client.rb:1035:in `change_resource_record_sets'
	 9: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/seahorse/client/request.rb:70:in `send_request'
	 8: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/seahorse/client/plugins/response_target.rb:23:in `call'
	 7: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/plugins/response_paging.rb:10:in `call'
	 6: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/plugins/param_converter.rb:24:in `call'
	 5: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/plugins/idempotency_token.rb:17:in `call'
	 4: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/plugins/jsonvalue_converter.rb:20:in `call'
	 3: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/seahorse/client/plugins/raise_response_errors.rb:14:in `call'
	 2: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/plugins/param_validator.rb:23:in `call'
	 1: from /Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/param_validator.rb:13:in `validate!'
/Users/kaspergrubbe/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/aws-sdk-core-3.48.3/lib/aws-sdk-core/param_validator.rb:33:in `validate!': expected params[:change_batch][:changes][0][:resource_record_set][:resource_records][0][:value] to be a String, got value 1556036081 (class: Integer) instead. (ArgumentError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant