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

route53_record resource: change_record method does not rescue Aws::Route53::Types::ThrottlingException #420

Open
haidangwa opened this issue Nov 5, 2020 · 0 comments

Comments

@haidangwa
Copy link

We've had chef run failures during a large scale-up event in our autoscaling group. Each instance of the autoscaling group that comes online adds itself to the same DNS CNAME in route53; however, because of the large scale-up event, multiple instances attempt to update the record exceeding the AWS rate limit. #change_record has a rescue to prevent a fail_on_error when this is false, but it only rescues Aws::Route53::Errors::ServiceError. The AWS ruby sdk documents the rate throttling exception as Aws::Route53::Types::ThrottlingException. Thus, the chef run fails even when fail_on_error is set to false (default value) for the route53_record resource.

#change_record should rescue Aws::Route53::Types::ThrottlingException since the last record update will be able to capture all of the records that need to be added.

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